-
Notifications
You must be signed in to change notification settings - Fork 29
59 lines (55 loc) · 1.68 KB
/
test-integration-skywalking-e2e.yml
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
53
54
55
56
57
58
59
name: Precommit - Integration Tests
on:
pull_request_target:
branches:
- '*'
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- 'PROJECT'
- 'LICENSE'
- 'mesh-worker-service/README.md'
- 'tools/README.md'
permissions: read-all
jobs:
integration:
runs-on: ubuntu-latest
env:
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
timeout-minutes: 80
strategy:
matrix:
case:
- name: integration test
e2e: ".ci/tests/integration/e2e.yaml"
- name: integration test with tls
e2e: ".ci/tests/integration/e2e_with_tls.yaml"
- name: integration test with oauth2
e2e: ".ci/tests/integration-oauth2/e2e.yaml"
- name: integration test with downloader
e2e: ".ci/tests/integration-oauth2/e2e_with_downloader.yaml"
steps:
- name: clean disk
run: |
sudo swapoff -a
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc
sudo apt clean
docker rmi $(docker images -q) -f
df -h
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
repository: ${{github.event.pull_request.head.repo.full_name}}
ref: ${{ github.event.pull_request.head.sha }}
- uses: apache/[email protected]
with:
e2e-file: ${{matrix.case.e2e}}
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: failure()
- name: Cleanup
if: ${{ failure() }}
run: e2e cleanup -c ${{matrix.case.e2e}}