Skip to content

Merge pull request #155 from UpCloudLtd/dependabot/github_actions/act… #146

Merge pull request #155 from UpCloudLtd/dependabot/github_actions/act…

Merge pull request #155 from UpCloudLtd/dependabot/github_actions/act… #146

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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- 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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- 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