Browse Source

Add GitHub Actions tests

Douglas Thrift 1 year ago
parent
commit
fb543af405
1 changed files with 18 additions and 0 deletions
  1. 18 0
      .github/workflows/test.yml

+ 18 - 0
.github/workflows/test.yml

@@ -0,0 +1,18 @@
+name: Tests
+
+on:
+  push:
+    branches: [main]
+  pull_request:
+    types: [opened, synchronize, reopened]
+
+jobs:
+  Tests:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+      - uses: actions/setup-go@v3
+        with:
+          go-version: 1.18.x
+          cache: true
+      - run: go test -v -cover ./...