fix: improve logs messages and error handling #132
Workflow file for this run
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: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
permissions: | |
contents: read | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
unit: | |
strategy: | |
fail-fast: false | |
matrix: | |
runs-on: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
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@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.20" | |
- uses: hetznercloud/tps-action@main | |
- run: make testacc | |
example: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write # Required by hetznercloud/tps-action | |
defaults: | |
run: | |
working-directory: example | |
env: | |
PACKER_LOG: "1" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: hetznercloud/tps-action@main | |
- uses: hashicorp/[email protected] | |
with: | |
version: "1.10.0" | |
- run: packer init . | |
- run: packer validate . | |
- run: packer build . |