Release v1.8.0 (#118) #2503
Workflow file for this run
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: tests # runs unit and integration tests | |
| on: | |
| push: | |
| branches-ignore: [main] | |
| workflow_dispatch: | |
| jobs: | |
| linux-tests: | |
| strategy: | |
| matrix: | |
| # TODO: remove older node versions | |
| node: [10, 12, 14, 16, 18, 20, 22] | |
| fail-fast: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: npm | |
| - uses: ./.github/actions/redis | |
| with: | |
| redis-version: 6 | |
| - name: Cache node modules | |
| id: cache-nodemodules | |
| uses: actions/cache@v3 | |
| env: | |
| cache-name: cache-node-modules | |
| with: | |
| path: "**/node_modules" | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
| - run: npm i | |
| if: ${{ steps.cache-nodemodules.outputs.cache-hit != 'true' }} | |
| - run: npm run build | |
| - run: npm run test:unit | |
| - run: npm run test:integration |