Plugin implementation with test cases #4
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: [main] | |
pull_request: | |
types: [opened, synchronize, reopened, auto_merge_enabled] | |
# Allow parallel jobs on `main`, so that each commit is tested. For PRs, run only the latest commit. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Node.js ${{ matrix.node }} | |
strategy: | |
fail-fast: true | |
matrix: | |
node: [18] | |
steps: | |
- uses: actions/setup-node@v4 | |
- uses: actions/checkout@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'npm' | |
- run: npm i | |
- run: npm run lint | |
- run: npm test | |
env: | |
FORCE_COLOR: true |