2019-12-11 08:19:06 -07:00
|
|
|
name: Build and test
|
2019-12-11 20:47:40 -07:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
2020-03-02 14:21:19 -07:00
|
|
|
paths:
|
|
|
|
- '.github/workflows/test.yml'
|
|
|
|
- '**Makefile'
|
|
|
|
- '**.go'
|
|
|
|
- '**.proto'
|
|
|
|
- 'go.mod'
|
|
|
|
- 'go.sum'
|
2019-12-11 08:19:06 -07:00
|
|
|
jobs:
|
|
|
|
|
|
|
|
test-linux:
|
|
|
|
name: Build all and test on ubuntu-linux
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
2023-09-05 09:43:56 -06:00
|
|
|
- uses: actions/checkout@v4
|
2019-12-11 08:19:06 -07:00
|
|
|
|
2023-12-13 21:45:09 -07:00
|
|
|
- uses: actions/setup-go@v5
|
2020-03-02 14:21:19 -07:00
|
|
|
with:
|
2024-04-29 14:44:42 -06:00
|
|
|
go-version: '1.22'
|
2023-05-23 11:24:33 -06:00
|
|
|
check-latest: true
|
2020-03-02 14:21:19 -07:00
|
|
|
|
2019-12-11 08:19:06 -07:00
|
|
|
- name: Build
|
|
|
|
run: make all
|
|
|
|
|
2023-03-13 13:35:12 -06:00
|
|
|
- name: Vet
|
|
|
|
run: make vet
|
|
|
|
|
2019-12-11 08:19:06 -07:00
|
|
|
- name: Test
|
|
|
|
run: make test
|
|
|
|
|
2021-03-31 09:26:35 -06:00
|
|
|
- name: End 2 end
|
2021-04-30 17:19:40 -06:00
|
|
|
run: make e2evv
|
2021-03-31 09:26:35 -06:00
|
|
|
|
2023-12-21 09:59:21 -07:00
|
|
|
- name: Build test mobile
|
|
|
|
run: make build-test-mobile
|
|
|
|
|
2022-06-27 11:33:29 -06:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: e2e packet flow
|
|
|
|
path: e2e/mermaid/
|
|
|
|
if-no-files-found: warn
|
|
|
|
|
2023-05-08 11:27:01 -06:00
|
|
|
test-linux-boringcrypto:
|
|
|
|
name: Build and test on linux with boringcrypto
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
2023-09-05 09:43:56 -06:00
|
|
|
- uses: actions/checkout@v4
|
2023-05-08 11:27:01 -06:00
|
|
|
|
2023-12-13 21:45:09 -07:00
|
|
|
- uses: actions/setup-go@v5
|
2023-05-08 11:27:01 -06:00
|
|
|
with:
|
2024-04-29 14:44:42 -06:00
|
|
|
go-version: '1.22'
|
2023-05-23 11:24:33 -06:00
|
|
|
check-latest: true
|
2023-05-08 11:27:01 -06:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: make bin-boringcrypto
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: make test-boringcrypto
|
|
|
|
|
|
|
|
- name: End 2 end
|
|
|
|
run: make e2evv GOEXPERIMENT=boringcrypto CGO_ENABLED=1
|
|
|
|
|
2019-12-11 08:19:06 -07:00
|
|
|
test:
|
|
|
|
name: Build and test on ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-11-09 09:49:54 -07:00
|
|
|
os: [windows-latest, macos-11]
|
2019-12-11 08:19:06 -07:00
|
|
|
steps:
|
|
|
|
|
2023-09-05 09:43:56 -06:00
|
|
|
- uses: actions/checkout@v4
|
2019-12-11 08:19:06 -07:00
|
|
|
|
2023-12-13 21:45:09 -07:00
|
|
|
- uses: actions/setup-go@v5
|
2020-03-02 14:21:19 -07:00
|
|
|
with:
|
2024-04-29 14:44:42 -06:00
|
|
|
go-version: '1.22'
|
2023-05-23 11:24:33 -06:00
|
|
|
check-latest: true
|
2020-03-02 14:21:19 -07:00
|
|
|
|
2019-12-11 08:19:06 -07:00
|
|
|
- name: Build nebula
|
|
|
|
run: go build ./cmd/nebula
|
|
|
|
|
|
|
|
- name: Build nebula-cert
|
|
|
|
run: go build ./cmd/nebula-cert
|
|
|
|
|
2023-03-13 13:35:12 -06:00
|
|
|
- name: Vet
|
|
|
|
run: make vet
|
|
|
|
|
2019-12-11 08:19:06 -07:00
|
|
|
- name: Test
|
2023-03-13 13:35:12 -06:00
|
|
|
run: make test
|
2021-03-31 09:26:35 -06:00
|
|
|
|
|
|
|
- name: End 2 end
|
2021-04-30 17:19:40 -06:00
|
|
|
run: make e2evv
|
2022-06-27 11:33:29 -06:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: e2e packet flow
|
|
|
|
path: e2e/mermaid/
|
|
|
|
if-no-files-found: warn
|