From 2571dbe3470c6d00ff87bfd6e1a7273b942284a5 Mon Sep 17 00:00:00 2001 From: Ethan Holz Date: Sun, 14 May 2023 01:27:20 -0500 Subject: [PATCH] Add Github Actions for automated testing (#12) * ci: Added initial github action for automated testing * fix: changed go version * ci: updated to change job name to test --- .github/workflows/ci.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..e64434d --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,24 @@ +name: Go package + +on: [push] + +jobs: + test: + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.16' + + - name: Install dependencies + run: go get . + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...