Bump github/codeql-action from 3.27.6 to 3.28.0 #389
Workflow file for this run
This file contains 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
on: | |
pull_request: | |
types: [ opened, reopened, synchronize, ready_for_review ] | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'Branch to run tests on' | |
required: true | |
default: 'main' | |
name: PR CI/CD | |
# cancel already running jobs for same PR | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
actions: read | |
jobs: | |
analyze: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
disable-sudo: true | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 # v1.6.2 | |
with: | |
sdk: stable | |
- name: Install dependencies | |
run: dart pub get | |
- run: dart analyze --fatal-infos | |
test: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
disable-sudo: true | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 # v1.6.2 | |
with: | |
sdk: stable | |
- name: Install dependencies | |
run: dart pub get | |
- name: Install coverage | |
run: dart pub global activate coverage | |
- uses: stelynx/dart-full-coverage@fc91fc4cf52e65867c0ad0e54390d0fd4e22f7d8 # v1.1.1 | |
with: | |
package: dart_pdf_reader | |
- run: dart test --no-color test --file-reporter "json:unit.test.json" --coverage="coverage" | |
- name: Convert coverage | |
run: $HOME/.pub-cache/bin/format_coverage --lcov --in=coverage --out=coverage.lcov --report-on=lib --check-ignore | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Test Report | |
if: always() | |
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1 | |
with: | |
name: Unit Tests | |
path: unit.test.json | |
reporter: dart-json |