Skip to content

Commit

Permalink
Create npm-test.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Babichev <maksim.babichev95@gmail.com>
  • Loading branch information
rez1dent3 authored Aug 20, 2023
1 parent f5b506f commit 9561928
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: npm run test

on:
workflow_call:
inputs:
nodejs:
type: string
default: '20.x'

jobs:
units:
runs-on: ubuntu-latest

env:
NODE_ENV: production

steps:
- uses: actions/checkout@v3

- name: Setup Node ${{ inputs.nodejs }}
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.nodejs }}
cache: npm

- name: "install"
run: npm ci --production

- name: "test"
run: npm run test

0 comments on commit 9561928

Please sign in to comment.