Feature/preferred strategy #117
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: Tests | |
on: | |
push: | |
branches: [ develop, main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
name: Run Tests | |
strategy: | |
matrix: | |
node: [18.x] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install npm dependencies | |
run: | | |
npm ci | |
- name: Lint code | |
if: ${{ matrix.node == '18.x' }} | |
run: npm run lint | |
- name: Run tests | |
run: npm run test |