Skip to content

Commit

Permalink
Add workflow for automated implementation testing
Browse files Browse the repository at this point in the history
Signed-off-by: Marcela Melara <[email protected]>
  • Loading branch information
marcelamelara committed May 12, 2023
1 parent 4bf283c commit eab85b2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/run-go-tests.yml
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

0 comments on commit eab85b2

Please sign in to comment.