Configure Renovate #30
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
name: 'go' | |
on: | |
release: | |
types: [published] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repo | |
- name: 'Checkout' | |
uses: actions/checkout@v2 | |
# Build Go binaries | |
- name: 'Build Go binaries' | |
uses: cloudposse/actions/go/[email protected] | |
env: | |
GO111MODULE: on | |
# Architectures to build for | |
GOX_OSARCH: >- | |
windows/386 | |
windows/amd64 | |
freebsd/arm | |
netbsd/386 | |
netbsd/amd64 | |
netbsd/arm | |
linux/s390x | |
linux/arm | |
darwin/386 | |
darwin/amd64 | |
linux/386 | |
linux/amd64 | |
freebsd/amd64 | |
freebsd/386 | |
openbsd/386 | |
openbsd/amd64 | |
OUTPUT_PATH: ${{ github.workspace }}/release/${{ github.event.repository.name }}_ | |
# Run the go tests | |
- name: 'Run tests' | |
run: find ${{ github.workspace }}; ${{ github.workspace }}/release/${{ github.event.repository.name }}_linux_amd64 | |
# Upload artifacts for this build | |
- name: 'Upload artifacts' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ github.event.repository.name }} | |
path: ${{ github.workspace }}/release/* | |
# Attach Go binaries to GitHub Release | |
- name: 'Attach artifacts to GitHub Release' | |
if: ${{ github.event_name == 'release' }} | |
uses: cloudposse/actions/github/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
INPUT_PATH: ${{ github.workspace }}/release/${{ github.event.repository.name }}_* |