-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (50 loc) · 1.62 KB
/
integration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Integration Tests
on:
pull_request_target:
types:
- labeled
- synchronize
branches:
- main
push:
branches:
- 'main'
tags:
- '*'
concurrency:
group: integration_tests
cancel-in-progress: false
jobs:
integration-tests:
runs-on: ubuntu-latest
name: Integration Tests
steps:
- name: Checkout Repository
if: github.event_name != 'pull_request_target'
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Checkout Repository PR
if: github.event_name == 'pull_request_target'
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
with:
fetch-depth: 2
ref: "refs/pull/${{ github.event.number }}/merge"
- uses: actions/setup-go@v4
with:
go-version: '1.22'
- run: make integration-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 }}
- name: Upload coverage to Codecov
if: github.event_name == 'pull_request_target'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
override_pr: ${{ github.event.number }}
override_commit: ${{ github.event.pull_request.head.sha }}
- name: Upload coverage to Codecov
if: github.event_name != 'pull_request_target'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}