commit 9dcb259ba57b68bc19fcc82cc741296125f1a625
parent adde633d34f000e9832bfbdcb69005704bd920a7
Author: Erik Agsjö <erik.agsjo@gmail.com>
Date: Sat, 11 Dec 2021 11:29:50 +0100
Github actions setup
Diffstat:
2 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/branch.yml b/.github/workflows/branch.yml
@@ -0,0 +1,34 @@
+name: Branch build
+
+on:
+ push:
+ branches-ignore:
+ - 'test-*'
+
+jobs:
+
+ build:
+ name: Build
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [macos-latest, ubuntu-latest, windows-latest]
+ steps:
+
+ - name: Set up Go 1.17
+ uses: actions/setup-go@v1
+ with:
+ go-version: 1.17
+ id: go
+
+ - name: Check out code
+ uses: actions/checkout@v1
+
+ - name: Install windows build helpers
+ if: startsWith(matrix.os, 'windows')
+ run: choco install mingw
+
+ - name: Run tests
+ run: go run ./rig.go
+ working-directory: ./testrig
+
diff --git a/testrig/rig.go b/testrig/rig.go
@@ -26,6 +26,8 @@ func main() {
if err != nil {
log.Fatal(err)
}
+
+ os.Exit(0)
}
func build() error {