chore: lint #2
This file contains hidden or 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: Unit Tests | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| tags-ignore: | |
| - '*.*.*' | |
| pull_request: | |
| jobs: | |
| tests: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: | | |
| npm install | |
| env: | |
| CI: true | |
| - name: Build for Node.js ${{ matrix.node-version }} | |
| run: | | |
| npm run build | |
| - name: Unit tests | |
| run: | | |
| npm run test | |
| env: | |
| CI: true |