-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow for automated implementation testing
Signed-off-by: Marcela Melara <[email protected]>
- Loading branch information
1 parent
4bf283c
commit eab85b2
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Run Go tests | ||
on: | ||
workflow_dispatch: | ||
|
||
# Want to trigger these tests whenever the attestation | ||
# libraries are regenerated, or new modules/tests are | ||
# added to the language bindings | ||
pull_request: | ||
paths: | ||
- 'go/**' | ||
permissions: read-all | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab | ||
- name: Install Go | ||
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 | ||
with: | ||
go-version: 1.20.x | ||
- name: Format | ||
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi | ||
- name: Setup Env | ||
run: | | ||
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | ||
- name: Run tests | ||
run: | | ||
make go_test |