Bump actions/dependency-review-action from 4.3.4 to 4.5.0 #805
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
name: Tests | |
on: | |
workflow_dispatch: | |
inputs: | |
target_environment: | |
required: false | |
type: choice | |
description: Select environment | |
default: dev | |
options: | |
- dev | |
push: | |
paths: | |
- .github/**/*.yml | |
- scripts/** | |
- starterkit_app/** | |
branches: | |
- main | |
pull_request: | |
paths: | |
- .github/**/*.yml | |
- scripts/** | |
- starterkit_app/** | |
types: [opened, synchronize, reopened] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
PROJECT_WORKING_DIRECTORY: "starterkit_app" | |
permissions: {} | |
jobs: | |
run-tests: | |
runs-on: macos-latest | |
# Set `contents` to `write` if you want to commit to this repository | |
permissions: {} | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set app environment | |
uses: ./.github/workflows/steps/set-app-environment | |
with: | |
target_environment: ${{ github.event.inputs.target_environment }} | |
- name: Install Flutter | |
uses: ./.github/workflows/steps/install-flutter | |
with: | |
working_directory: ${{ env.PROJECT_WORKING_DIRECTORY }} | |
- name: Run code generation | |
uses: ./.github/workflows/steps/run-pub-get-and-code-generation | |
with: | |
generate_intl: "true" | |
working_directory: ${{ env.PROJECT_WORKING_DIRECTORY }} | |
- name: Add ignore-coverage to generated files | |
run: | | |
bash ../scripts/ignore_generated_files_from_coverage.sh | |
working-directory: ${{ env.PROJECT_WORKING_DIRECTORY }} | |
- name: Run tests | |
uses: ./.github/workflows/steps/run-tests | |
with: | |
working_directory: ${{ env.PROJECT_WORKING_DIRECTORY }} | |
- uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ${{ env.PROJECT_WORKING_DIRECTORY }}/coverage/lcov.info | |
fail_ci_if_error: true | |
verbose: true |