-
Notifications
You must be signed in to change notification settings - Fork 568
55 lines (45 loc) · 1.25 KB
/
cli_test_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
---
name: Cli e2e tests
"on":
push:
branches: ['develop']
jobs:
build:
permissions:
contents: 'read'
id-token: 'write'
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Download Go
uses: actions/setup-go@v5
with:
go-version: 1.22.0
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Deps cli
run: |
go get -v ./...
working-directory: cli
- name: Deps e2e
run: |
go get -v ./...
working-directory: cli_e2e
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.AWS_E2E_TEST_ROLE }}
- name: Test
run: |
echo '${{ secrets.GCP_CREDENTIALS }}' > /tmp/gcp.json
go test -v ./...
working-directory: cli_e2e
env:
GOOGLE_APPLICATION_CREDENTIALS: /tmp/gcp.json
GOOGLE_STORAGE_PLAN_ARTEFACT_BUCKET: gcp-plan-artefacts
AWS_S3_BUCKET: digger-tests-bucket
AWS_REGION: us-east-1