From c931a6d06135c92cc74ad8ee795b926f75228b81 Mon Sep 17 00:00:00 2001 From: lazaralex98 Date: Wed, 17 Jul 2024 23:54:48 +0300 Subject: [PATCH] add ci for testing --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..779cef4 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Go CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.22.5 + + - name: Install dependencies + run: go mod tidy + + - name: Run tests + run: go test ./... \ No newline at end of file