Skip to content

Commit e99d362

Browse files
committed
Add workflow for automated implementation testing
Signed-off-by: Marcela Melara <[email protected]>
1 parent 80f5b13 commit e99d362

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/run-go-tests.yml

+29
Original file line numberDiff line numberDiff line change
@@ -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+
run: |
29+
make go_test

0 commit comments

Comments
 (0)