Updated syntax for newer go version #180
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: PR | |
on: | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
make-flags: | |
description: additional flags to supply to make | |
required: false | |
default: DOCKER_GENERATOR=infoblox/atlas-gentool:latest | |
jobs: | |
test: | |
name: Test with integration | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
env: | |
HELM_VERSION: v3.4.2 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
path: ./src/github.com/${{ github.repository }} | |
- uses: actions/setup-go@v5 | |
with: | |
cache-dependency-path: "./src/github.com/${{ github.repository }}/go.sum" | |
- uses: azure/[email protected] | |
with: | |
version: ${{ env.HELM_VERSION }} | |
- run: go version | |
- run: echo ${{ github.workspace }}/bin >> $GITHUB_PATH | |
- name: Test | |
working-directory: ./src/github.com/${{ github.repository }} | |
env: | |
GOPATH: ${{ github.workspace }} | |
run: | | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions[bot]" | |
make test-with-integration ${{ github.event.inputs.make-flags }} |