0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-02 19:43:00 +00:00
terraform-provider-proxmox/.github/workflows/test.yml
2021-02-10 03:25:04 +01:00

37 lines
1011 B
YAML

name: Test changes
on:
pull_request:
branches:
- main
- master
- 'v*'
jobs:
test:
name: Pull Request
runs-on: ubuntu-20.04
steps:
-
name: Checkout the repository
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up the required version of Go
uses: actions/setup-go@v2
with:
go-version: 1.15
-
name: Install the required version of GoReleaser
env:
GORELEASER_VERSION: '0.155.1'
run: |
curl -sL -o goreleaser_amd64.deb "https://github.com/goreleaser/goreleaser/releases/download/v${GORELEASER_VERSION}/goreleaser_amd64.deb"
sudo dpkg -i goreleaser_amd64.deb
rm -f goreleaser_amd64.deb
-
name: Create snapshot
env:
GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }}
run: |
goreleaser build --config .goreleaser.test.yml --parallelism 2 --rm-dist --snapshot --timeout 1h