From a0bd92a08c56796ee2333ac2541ac89c671049b1 Mon Sep 17 00:00:00 2001 From: kucherenkovova Date: Mon, 20 May 2024 16:52:53 +0300 Subject: [PATCH] added ci pipeline --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f3c7b0e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: 'ci' + +on: + push: + branches: + - main + pull_request: + +jobs: + ci: + strategy: + matrix: + os: [ 'ubuntu-22.04' ] + go: [ '1.21', '1.22' ] + runs-on: ${{ matrix.os }} + steps: + - name: 'Checkout source code' + uses: 'actions/checkout@v3' + + - name: 'Set up Go' + uses: 'actions/setup-go@v4' + with: + go-version: ${{ matrix.go }} + + - name: 'Test' + run: go list -f '{{.Dir}}/...' -m | xargs go test -race -cover