Skip to content

Merge pull request #154 from UpCloudLtd/dependabot/github_actions/gol… #145

Merge pull request #154 from UpCloudLtd/dependabot/github_actions/gol…

Merge pull request #154 from UpCloudLtd/dependabot/github_actions/gol… #145

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Setup Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version-file: "go.mod"
- name: Build
run: make build
- name: Run unit tests
run: make test
integration-test:
needs: test
concurrency:
group: integration-test-${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Setup Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version-file: "go.mod"
- name: Run integration tests
env:
UPCLOUD_USERNAME: ${{ secrets.UPCLOUD_API_USER }}
UPCLOUD_PASSWORD: ${{ secrets.UPCLOUD_API_PASSWORD }}
PACKER_ACC: 1
run: make test_integration