-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (40 loc) · 1.22 KB
/
acceptance-test.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
name: acceptance test
on:
push:
branches: [main]
jobs:
acceptance-test:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
framework: ['0', '1']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- run: make test
env:
TF_ACC: 1
MACKEREL_API_KEY: ${{ secrets.MACKEREL_API_KEY }}
MACKEREL_EXPERIMENTAL_TFFRAMEWORK: ${{ matrix.framework }}
EXTERNAL_ID: ${{ secrets.EXTERNAL_ID }}
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-profile: coverage.txt
parallel: true
flag-name: Go-${{ matrix.os }}
finish:
needs: acceptance-test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true