From d20c0ace80009c98dd3a8841ea8cbc47333c612a Mon Sep 17 00:00:00 2001 From: Cameron Jenkins Date: Sat, 6 Jan 2024 01:12:18 -0500 Subject: [PATCH] Add GitHub Actions CI Testing --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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 0000000..29ff8a0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: tests + +on: + pull_request: + branches: + - "*" + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: "1.20" + + - name: Prepare dependencies + run: | + go mod download + + - name: Test code + run: | + go test -race ./... \ No newline at end of file