From 93fbb620f5bef1bc655899e1d13fb175f1895ca0 Mon Sep 17 00:00:00 2001 From: Manuel Carrer Date: Thu, 14 Nov 2024 11:05:29 +0100 Subject: [PATCH] Add go ci --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75dbfe4d..ba95b16a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,3 +64,21 @@ jobs: - name: Run unit and integration tests run: cargo test --no-fail-fast -- --nocapture --test-threads=1 + + - name: Setup Go 1.22.x + uses: actions/setup-go@v5 + with: + go-version: '1.22.x' + cache-dependency-path: migrations/go.sum + + - name: Install Go dependencies + working-directory: migrations + run: go get + + - name: Build migration package + working-directory: migrations + run: go build -v ./... + + - name: Run Go tests + working-directory: migrations + run: go test -v ./...