Skip to content

Commit

Permalink
fix CI for Integration tests & building images (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
BojanZelic authored Jan 3, 2025
1 parent 8f13055 commit 143e2e1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Build Image
on:
pull_request:
branches: [ main ]
pull_request_target:
types:
- labeled
- synchronize
branches:
- main
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
Expand Down Expand Up @@ -55,6 +59,7 @@ jobs:
# For pull requests, build and push platform-specific images
- name: Build and push Docker image
if: github.event_name == 'push' || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe to test'))
uses: docker/build-push-action@v5
with:
context: .
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Integration Tests
on:
pull_request:
pull_request_target:
types: [labeled]
types:
- labeled
- synchronize
branches:
- main
push:
branches:
- 'main'
Expand Down Expand Up @@ -31,7 +34,7 @@ jobs:
with:
go-version: '1.22'
- run: make integration-test
if: github.event_name == 'push' || github.event_name == 'pull_request' || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe to test'))
if: github.event_name == 'push' || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe to test'))
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Expand All @@ -46,4 +49,4 @@ jobs:
if: github.event_name != 'pull_request_target'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 143e2e1

Please sign in to comment.