2022-01-17 14:01:58 +01:00
|
|
|
name: Test Code Windows
|
2022-10-02 21:17:16 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
2022-06-24 14:50:14 +02:00
|
|
|
|
2022-01-17 14:01:58 +01:00
|
|
|
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
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2022-07-01 10:42:38 +02:00
|
|
|
go-version: 1.18.x
|
2022-01-17 14:01:58 +01:00
|
|
|
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
%LocalAppData%\go-build
|
2022-07-01 10:42:38 +02:00
|
|
|
~\go\pkg\mod
|
|
|
|
~\AppData\Local\go-build
|
2022-01-17 14:01:58 +01:00
|
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-go-
|
|
|
|
|
|
|
|
- uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: syso
|
|
|
|
path: iface\
|
|
|
|
|
2022-01-25 09:40:28 +01:00
|
|
|
- name: Test
|
2022-07-01 10:42:38 +02:00
|
|
|
run: go test -tags=load_wgnt_from_rsrc -timeout 5m -p 1 ./...
|