Merge pull request #225 from mackerelio-labs/fix-go-releaser #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |