We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80f5b13 commit e99d362Copy full SHA for e99d362
.github/workflows/run-go-tests.yml
@@ -0,0 +1,29 @@
1
+name: Run Go tests
2
+on:
3
+ workflow_dispatch:
4
+
5
+ # Want to trigger these tests whenever the attestation
6
+ # libraries are regenerated, or new modules/tests are
7
+ # added to the language bindings
8
+ pull_request:
9
+ paths:
10
+ - 'go/**'
11
+permissions: read-all
12
+jobs:
13
+ tests:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout
17
+ uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
18
+ - name: Install Go
19
+ uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
20
+ with:
21
+ go-version: 1.20.x
22
+ - name: Format
23
+ run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
24
+ - name: Setup Env
25
+ run: |
26
+ echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
27
+ - name: Run tests
28
29
+ make go_test
0 commit comments