🧹 update CI go and linter #2591
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: Run Test | |
on: | |
pull_request: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
branches: | |
- "main" | |
tags: ["v*.*.*"] | |
schedule: | |
- cron: '0 4 * * 3' # Every Wednesday at 4:00 AM | |
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token | |
permissions: | |
contents: read | |
jobs: | |
event_file: | |
name: "Store event file" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Event File | |
path: ${{ github.event_path }} | |
unit-tests: | |
if: | | |
!github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' | |
uses: ./.github/workflows/unit-tests.yaml | |
name: Unit tests | |
security-tests: | |
name: Security tests | |
needs: [unit-tests] | |
if: needs.unit-tests.result == 'success' | |
uses: ./.github/workflows/security-tests.yaml | |
secrets: inherit | |
integration-tests: | |
name: Integration tests | |
needs: [unit-tests] | |
if: needs.unit-tests.result == 'success' | |
uses: ./.github/workflows/integration-tests.yaml | |
with: | |
cnspecImageTag: "" | |
secrets: inherit |