Skip to content

Commit

Permalink
gh action pr test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bryopsida committed Oct 22, 2022
1 parent 0c607a4 commit fec2b1c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test
on:
pull_request:
branches: [ "master" ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [14.x,16.x,18.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
# can be used to compile TS -> JS prior to testing if needed
- run: npm run build --if-present
- run: npm test

0 comments on commit fec2b1c

Please sign in to comment.