Merge pull request #23 from Zoobdude/main #117
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 | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
unit-tests: | |
name: Run test suites | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run npm install | |
run: npm ci | |
- name: Run linter | |
run: npm run lint | |
if: ${{ !cancelled() }} | |
- name: Run formatter | |
run: npm run format | |
if: ${{ !cancelled() }} |