Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
This workflow will run the test suites through `npm run  test` , but only on demand.
  • Loading branch information
mdwiltfong authored Oct 3, 2023
1 parent a8f4eba commit c3c1fdf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Run Test Suites
on: workflow_dispatch
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Get code
uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: deps-node-modules-${{hashFiles('**/package-lock.json')}}
- name: Install dependencies
run: npm ci
- name: Lint code
run: npm run lint
- name: Test code
run: npm run test

0 comments on commit c3c1fdf

Please sign in to comment.