This repository has been archived by the owner on Oct 14, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.67 KB
/
go.yml
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
43
44
45
46
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
merge_group:
branches: [ "master" ]
jobs:
build:
# runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- name: Build
run: go build
# Check versions and clean up go.mod
- name: Check Modules
run: |
go mod verify
go mod tidy
# We cannot run go test because the mp_test.go file requires a connection with mission planner which this workflow cannot support.
# Instead we must run each test manually
- name: Run Go Tests
run: |
echo "${{ secrets.GCOM_LITE_ENV_FILE }}" > .env
go test -v controllers_test.go types.go db.go controllers.go log.go main.go odlc.go pathfinding.go rcomms.go mail.go qr.go
go test -v db_test.go types.go db.go controllers.go log.go main.go odlc.go pathfinding.go rcomms.go mail.go qr.go
go test -v odlc_test.go types.go db.go controllers.go log.go main.go odlc.go pathfinding.go rcomms.go mail.go qr.go
go test -v rcomms_test.go types.go db.go controllers.go log.go main.go odlc.go pathfinding.go rcomms.go mail.go qr.go
go test -v mail_test.go types.go db.go controllers.go log.go main.go odlc.go pathfinding.go rcomms.go mail.go qr.go
go test -v pathfinding_test.go types.go db.go controllers.go log.go main.go odlc.go pathfinding.go rcomms.go mail.go qr.go