mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
* update interface tests and configuration messages * little debug * little debug on both errors * print all devs * list of devices * debug func * handle interface close * debug socks * debug socks * if ports match * use random assigned ports * remove unused const * close management client connection when stopping engine * GracefulStop when management clients are closed * enable workflows on PRs too * remove iface_test debug code
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Test Build On Platforms
|
|
on: [push,pull_request]
|
|
jobs:
|
|
test_build:
|
|
strategy:
|
|
matrix:
|
|
os: [ windows, linux, darwin ]
|
|
go-version: [1.17.x]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Cache Go modules
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/go/pkg/mod
|
|
key: ${{ runner.os }}-go-test-${{ matrix.os }}-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-test-${{ matrix.os }}
|
|
|
|
- name: Install modules
|
|
run: GOOS=${{ matrix.os }} go mod tidy
|
|
|
|
- name: run build client
|
|
run: GOOS=${{ matrix.os }} go build .
|
|
working-directory: client
|
|
|
|
- name: run build management
|
|
run: GOOS=${{ matrix.os }} go build .
|
|
working-directory: management
|
|
|
|
- name: run build signal
|
|
run: GOOS=${{ matrix.os }} go build .
|
|
working-directory: signal |