# Requires repo secret: CODECOV_TOKEN ("repository upload token") name: Codecov on: pull_request: push: branches: - 'main' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: codecov-lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 - uses: formsort/action-check-codecov-config@v1 # !!! The codecov/project check should be required by GitHub !!! # See ../../codecov.yml for the configuration that drives the check codecov: needs: - codecov-lint runs-on: ubuntu-latest timeout-minutes: 20 steps: # Setup and install - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 with: submodules: 'recursive' - uses: volta-cli/action@5c175f92dea6f48441c436471e6479dbc192e194 # v4.2.1 - uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 with: path: | ~/.npm ~\AppData\Roaming\npm-cache key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-npm- ${{ runner.os }}- - run: npm ci --foreground-scripts - run: | sudo apt-get update sudo apt-get install -y libsdl2-2.0-0 libsdl2-ttf-2.0-0 # Run test coverage - run: npm run test:coverage - uses: codecov/codecov-action@fdcc8476540edceab3de004e990f80d881c6cc00 # v5.5.0 with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true verbose: true