Skip to content

Merge pull request #234 from tosuke/framework-monitor-floatstring #41

Merge pull request #234 from tosuke/framework-monitor-floatstring

Merge pull request #234 from tosuke/framework-monitor-floatstring #41

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