diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a23ea7..ce50f9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,13 +30,14 @@ jobs: steps: - name: Install Go ${{ matrix.go }} - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} + cache: false - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache Modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-v1-${{ hashFiles('**/go.sum') }} @@ -46,3 +47,9 @@ jobs: run: go test -p 1 -v ./... env: POSTGRES_URL: postgres://postgres:postgres@localhost:5432/tata_test?sslmode=disable + + release: + needs: test + if: github.ref == 'refs/heads/master' + uses: upfluence/actions/.github/workflows/lib-any-release.yml@master + secrets: inherit diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 06d0198..fee8b72 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,11 +8,11 @@ jobs: timeout-minutes: 30 steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: 1.18.x + go-version: 1.21.x - name: Check out code - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: golanci-lint uses: upfluence/action-golangci-lint@master with: