From cf040b7ec096d2bab72078837c1b6e1007171edc Mon Sep 17 00:00:00 2001 From: Eric Chiang Date: Thu, 30 Mar 2023 20:25:57 +0000 Subject: [PATCH] add github actions tests Was chatting with @brandonweeks who mentioned go-tpm uses a different CI and expressed interest in github actions. --- .github/workflows/test.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..93be238b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,16 @@ +on: [push, pull_request] +name: Test +jobs: + test: + strategy: + matrix: + go-version: [1.19.x, 1.20.x] + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go-version }} + - uses: actions/checkout@v3 + - run: go build ./... + - run: go test ./...