Skip to content

Feature: add Scoop bucket #7444

Feature: add Scoop bucket

Feature: add Scoop bucket #7444

Workflow file for this run

# 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:
permissions:
contents: read # actions/checkout
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: formsort/action-check-codecov-config@6934627a1a84ceb56108a2d83223a15dc354ea38 # v1
# !!! The codecov/project check should be required by GitHub !!!
# See ../../codecov.yml for the configuration that drives the check
codecov:
needs:
- codecov-lint
permissions:
contents: read # actions/checkout
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
# Setup and install
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
submodules: 'recursive'
- uses: volta-cli/action@615a78f6c83e116339c53b94f3f82b4d6c0b7d18 # v5.0.0
- id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> "${GITHUB_OUTPUT}"
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
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@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true