name: 'Test' on: push: branches: - main paths-ignore: - '**.md' pull_request: paths-ignore: - '**.md' jobs: test: runs-on: ${{ matrix.os }} timeout-minutes: 20 permissions: contents: read strategy: fail-fast: false matrix: os: - 'ubuntu-24.04' - 'macos-latest' - 'windows-latest' steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version-file: '.nvmrc' cache: 'npm' - run: npm ci - name: Run prettier if: matrix.os == 'ubuntu-24.04' run: npm run format:check - name: Run eslint if: matrix.os == 'ubuntu-24.04' run: npm run lint - name: Run ncc if: matrix.os == 'ubuntu-24.04' run: npm run build - run: npm test - name: Upload test coverage as artifact uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: coverage-${{ matrix.os }} path: coverage - uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1