Updated API & dependencies #58
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 | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| actionlint: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Using branch ${{ github.ref }} for repository ${{ github.repository }}. | |
| uses: actions/checkout@v4 | |
| - name: Run actionlint | |
| run: make actionlint | |
| eslint: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| matrix: | |
| node-version: [ 22.x, 24.x ] | |
| steps: | |
| - name: Using branch ${{ github.ref }} for repository ${{ github.repository }}. | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js and dependencies | |
| uses: ./.github/actions/setup-node-deps | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Run lint | |
| run: yarn lint | |
| tests: | |
| needs: [ actionlint, eslint ] | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| matrix: | |
| node-version: [22.x, 24.x] | |
| steps: | |
| - name: Using branch ${{ github.ref }} for repository ${{ github.repository }}. | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js and dependencies | |
| uses: ./.github/actions/setup-node-deps | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Run tests | |
| run: yarn test:coverage | |
| - name: Run type tests | |
| run: yarn test:d | |
| - name: Upload coverage to GitHub Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-${{ matrix.node-version }} | |
| path: coverage/ | |
| retention-days: 30 | |
| - name: Upload coverage reports to Codecov | |
| if: matrix.node-version == '24.x' | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage/lcov.info | |
| disable_search: true | |
| fail_ci_if_error: true | |
| verbose: true |