Update test-push.yml #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test PUSH action | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest #nodejs preinstalled on the ubuntu runner | |
steps: | |
#action needs specific access to download the code from the repository onto this runner or this server | |
- name: Get code | |
uses: actions/checkout@v4 | |
- name: Install NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: cd flake-guard-app && npm install #npm ci is best practice over npm i | |
- name: Run tests | |
run: cd flake-guard-app && npm test | |
- name: Install dependencies | |
run: cd flake-guard-npm && npm install #npm ci is best practice over npm i | |
- name: Run tests | |
run: cd flake-guard-npm && npm test | |