From 7d839e886828597814f8d7d3af804780ecb018d2 Mon Sep 17 00:00:00 2001 From: Antoine Aflalo <197810+Belphemur@users.noreply.github.com> Date: Tue, 27 Aug 2024 09:10:42 -0400 Subject: [PATCH] ci: add github action for test --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..1b2e095 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Go Test + +on: + push: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.23' + + - name: Install dependencies + run: go mod tidy + + - name: Run tests + run: go test ./... -v \ No newline at end of file