build(deps): bump github/codeql-action from 3.27.7 to 3.27.9 #318
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
name: Unit Test | |
on: | |
push: | |
pull_request: | |
jobs: | |
pre_job: | |
# continue-on-error: true | |
runs-on: ubuntu-latest | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1 | |
with: | |
concurrent_skipping: 'same_content_newer' | |
skip_after_successful_duplicate: 'true' | |
cancel_others: 'true' | |
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]' | |
paths: '["go.mod", "go.sum", "Makefile", "src/**/*"]' | |
test: | |
name: Test | |
needs: pre_job | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
with: | |
go-version-file: ./go.mod | |
cache-dependency-path: ./go.sum | |
- name: Setup gotest | |
run: curl -L https://gotest-release.s3.amazonaws.com/gotest_linux > gotest && chmod +x gotest && sudo mv gotest /usr/bin/gotest | |
- name: Test | |
if: needs.pre_job.outputs.should_skip != 'true' | |
run: make test-coverage | |
- name: Hack Code Climate and Go Modules | |
if: github.event_name != 'pull_request' && github.ref_name == 'main' | |
run: mkdir -p "github.com/${{ github.repository_owner }}" && ln -sf "$(pwd)" "github.com/${{ github.repository }}" | |
- name: Test & publish code coverage | |
if: github.event_name != 'pull_request' && github.ref_name == 'main' | |
uses: paambaati/codeclimate-action@f429536ee076d758a24705203199548125a28ca7 # v9.0.0 | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageCommand: make test-coverage | |
debug: true |