Build(deps): Bump gocloud.dev from 0.29.0 to 0.32.0 #3069
Workflow file for this run
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: Build | |
on: | |
push: | |
branches: [ main ] | |
tags: [ 'v*' ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
linux-build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/hairyhenderson/gomplate-ci-build | |
steps: | |
- run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Someone" | |
git config --global --add safe.directory /__w/gomplate/gomplate | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: make build | |
- name: Save binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: gomplate | |
path: bin/gomplate | |
- name: make test | |
run: | | |
[ -n "$CC_TEST_REPORTER_ID" ] && cc-test-reporter before-build | |
make test | |
EXIT_CODE=$? | |
if [ -n "$CC_TEST_REPORTER_ID" ]; then | |
# workaround from https://github.com/codeclimate/test-reporter/issues/378 | |
export PREFIX=$(go list -m) | |
cc-test-reporter after-build -t gocov -p $PREFIX --exit-code $EXIT_CODE | |
fi | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
- run: make integration | |
windows-build: | |
runs-on: windows-latest | |
env: | |
TMP: D:\a\tmp | |
steps: | |
- run: pwd | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Someone" | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: make build | |
- name: Save binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: gomplate.exe | |
path: bin/gomplate.exe | |
- run: make test | |
- run: make integration |