Skip to content

test: use ci job matrix and fix acceptance tests #21

test: use ci job matrix and fix acceptance tests

test: use ci job matrix and fix acceptance tests #21

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
unit:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
- run: make test
acceptance:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, windows-latest, macos-latest]
permissions:
id-token: write # Required by hetznercloud/tps-action
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
- uses: hetznercloud/tps-action@main
# - if: runner.os == 'Windows'
# run: |
# echo "BINARY=packer-plugin-hcloud.exe" >> $GITHUB_ENV
# echo "PACKER_PLUGIN_PATH=%APPDATA%\packer.d\plugins" >> $GITHUB_ENV
- if: runner.os == 'Windows'
name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
- run: make testacc