-
Notifications
You must be signed in to change notification settings - Fork 46
38 lines (37 loc) · 1.18 KB
/
pr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 }}