baldm0mma/ add continue on error

This commit is contained in:
jev forsberg 2025-02-14 16:35:09 -07:00
parent c498d9b657
commit b388ce16e0

View File

@ -45,23 +45,28 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
continue-on-error: true
- name: Setup Go
uses: actions/setup-go@v5
continue-on-error: true
with:
go-version: '1.23.5'
cache: true
- name: Install dependencies
continue-on-error: true
run: |
sudo apt-get update
sudo apt-get install -y build-essential shared-mime-info make
- name: Get runner name
continue-on-error: true
run: echo ${{ runner.name }}
- name: Retrieve GitHub App secrets
id: get-secrets
continue-on-error: true
uses: grafana/shared-workflows/actions/get-vault-secrets@get-vault-secrets-v1.0.1
with:
repo_secrets: |
@ -70,6 +75,7 @@ jobs:
PRIVATE_KEY=github-app:private-key
- name: Debug secrets (redacted)
continue-on-error: true
run: |
if [ -n "${{ env.APP_ID }}" ]; then echo "APP_ID is set"; else echo "APP_ID is not set"; fi
if [ -n "${{ env.APP_INSTALLATION_ID }}" ]; then echo "APP_INSTALLATION_ID is set"; else echo "APP_INSTALLATION_ID is not set"; fi
@ -77,20 +83,22 @@ jobs:
- name: Generate GitHub App token
id: generate_token
continue-on-error: true
uses: actions/create-github-app-token@v1
with:
app-id: ${{ env.APP_ID }}
private-key: ${{ env.PRIVATE_KEY }}
- name: Debug token (redacted)
continue-on-error: true
run: |
if [ -n "${{ steps.generate_token.outputs.token }}" ]; then echo "Token was generated"; else echo "Token was not generated"; fi
- name: Setup Enterprise (PR only)
if: github.event_name == 'pull_request'
continue-on-error: true
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
continue-on-error: true
run: |
# Check if PR is from a fork
IS_FORK="${{ github.event.pull_request.head.repo.fork }}"
@ -123,18 +131,23 @@ jobs:
./build.sh
- name: Verify CUE generation
continue-on-error: true
run: CODEGEN_VERIFY=1 make gen-cue
- name: Verify Jsonnet generation
continue-on-error: true
run: CODEGEN_VERIFY=1 make gen-jsonnet
- name: Wire install
continue-on-error: true
run: make gen-go
- name: Run backend tests
continue-on-error: true
run: |
go list -f '{{.Dir}}/...' -m | xargs go test -short -covermode=atomic -timeout=5m
- name: Run backend integration tests
continue-on-error: true
run: |
go test -count=1 -covermode=atomic -timeout=5m -run '^TestIntegration' $(find ./pkg -type f -name '*_test.go' -exec grep -l '^func TestIntegration' '{}' '+' | grep -o '\(.*\)/' | sort -u)