-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* attempt experimental windows builds * leave win builds disabled and improve docs a bit * create goreleaser workflow but skip publish for now * change snapshot name template for better archive filenames
- Loading branch information
Showing
5 changed files
with
120 additions
and
35 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
name: release | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["test"] | ||
branches: [main] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
release: | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: setup-go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16.x | ||
|
||
- name: goreleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --rm-dist --skip-publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,50 @@ | ||
--- | ||
"on": | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
name: test | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
go-version: [1.16.x] | ||
tf-version: [0.12.x, latest] | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
# win support is not quite there yet. | ||
#- windows-latest | ||
tf-version: [latest, 0.12.x] | ||
os: [macos-latest, ubuntu-latest] | ||
experimental: [false] | ||
|
||
# including these is non-ideal while windows support is questionable. | ||
# even when continue-on-error=true they turn the PR checks red | ||
# | ||
# include: | ||
# - go-version: 1.16.x | ||
# tf-version: latest | ||
# os: windows-latest | ||
# experimental: true | ||
# - go-version: 1.16.x | ||
# tf-version: 0.12.x | ||
# os: windows-latest | ||
# experimental: true | ||
|
||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.experimental }} | ||
|
||
steps: | ||
- name: setup go | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: setup-go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: setup terraform | ||
|
||
- name: setup-terraform | ||
uses: hashicorp/setup-terraform@v1 | ||
with: | ||
terraform_version: ${{ matrix.tf-version }} | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: test | ||
|
||
- name: run-tests | ||
run: make test |
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
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
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