-
Notifications
You must be signed in to change notification settings - Fork 83
69 lines (69 loc) · 1.9 KB
/
e2e-tests.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
60
61
62
63
64
65
66
67
68
69
---
name: E2E Tests
on:
push:
branches:
- master
pull_request:
jobs:
config:
env:
TEST_CMD: gotestsum --junitfile e2e-tests.xml --format standard-verbose --
UNIT_TAGS: unit
runs-on: ubuntu-latest
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: go install gotest.tools/gotestsum@latest
- run: |
set -Eeou pipefail
mkdir "$XDG_CONFIG_HOME/atlascli"
cat <<EOF > "$XDG_CONFIG_HOME/atlascli/config.toml"
[e2e]
org_id = "test_id"
public_api_key = "test_pub"
service = "cloud"
EOF
- run: make e2e-test
env:
E2E_TAGS: config
- name: Test Summary
id: test_summary
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86
with:
paths: e2e-tests.xml
brew:
env:
TEST_CMD: gotestsum --junitfile e2e-tests.xml --format standard-verbose --
UNIT_TAGS: unit
runs-on: ubuntu-latest
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: go install gotest.tools/gotestsum@latest
- run: make e2e-test
env:
E2E_TAGS: brew
- name: Test Summary
id: test_summary
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86
with:
paths: e2e-tests.xml