Skip to content

Register plug-in as Packer integration #135

Register plug-in as Packer integration

Register plug-in as Packer integration #135

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
matrix:
go-version: [1.18.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Setup Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: ${{ matrix.go-version }}
- name: Dependencies
run: |
go version
go get -u golang.org/x/lint/golint
- name: Build
run: make build
- name: Test PR
if: github.ref != 'refs/heads/main'
run: make test
- name: Test main
if: github.ref == 'refs/heads/main'
env:
UPCLOUD_API_USER: ${{ secrets.UPCLOUD_API_USER }}
UPCLOUD_API_PASSWORD: ${{ secrets.UPCLOUD_API_PASSWORD }}
PACKER_ACC: 1
run: make test_integration