mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-24 23:59:25 +01:00
0739038d51
* 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
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
name: Test Code Windows
|
|
on: [push,pull_request]
|
|
jobs:
|
|
pre:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- run: bash -x wireguard_nt.sh
|
|
working-directory: client
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: syso
|
|
path: client/*.syso
|
|
retention-days: 1
|
|
|
|
test:
|
|
needs: pre
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.17.x]
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
%LocalAppData%\go-build
|
|
~/go/pkg/mod
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
|
|
- uses: actions/download-artifact@v2
|
|
with:
|
|
name: syso
|
|
path: iface\
|
|
|
|
- name: Install modules
|
|
run: go mod tidy
|
|
|
|
- name: Test
|
|
run: go test -tags=load_wgnt_from_rsrc ./...
|