-
Notifications
You must be signed in to change notification settings - Fork 26
42 lines (39 loc) · 1.23 KB
/
on_push_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
39
40
41
42
name: Push/PR
on:
push:
branches:
- main
- master
- renovate/**
pull_request:
workflow_dispatch:
jobs:
push-pr:
uses: newrelic/coreint-automation/.github/workflows/reusable_push_pr.yaml@v3
with:
integration: kafka
run_integration_nix: false
secrets: inherit
# This is currently not covered by reusable workflow due to the retry mechanism
test-integration-nix:
name: Run integration tests on *Nix
runs-on: ubuntu-22.04
env:
ORIGINAL_REPO_NAME: ${{ github.event.repository.full_name }}
NRJMX_VERSION: '2.3.2' ## this is needed in the makefile
defaults:
run:
working-directory: src/github.com/${{env.ORIGINAL_REPO_NAME}}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 1
path: src/github.com/${{env.ORIGINAL_REPO_NAME}}
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: 'src/github.com/${{env.ORIGINAL_REPO_NAME}}/go.mod'
- name: Integration test
# One of the integration consumer tests is not working as expected to the environment bootstrap, to keep it
run: for i in 1 2 3; do make integration-test && break; done