From bfe85addfaa9d5f2f7c443fc9eb0ad7017c22198 Mon Sep 17 00:00:00 2001 From: Sphericalkat Date: Sun, 28 May 2023 23:12:19 +0530 Subject: [PATCH] feat: add workflow to build and test code Signed-off-by: Sphericalkat --- .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..98be42a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: Run tests +on: [push, pull_request] + +jobs: + test: + name: Run tests + runs-on: ubuntu-latest + strategy: + matrix: + go-version: [ '1.18', '1.19', '1.20' ] + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + + - name: Build + run: go build . + + - name: Test + run: go test ./... \ No newline at end of file