diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 263f9f4..05a17f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,13 +16,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') }} @@ -30,3 +31,9 @@ jobs: ${{ runner.os }}-go- - name: Run tests run: go test -p 1 -v ./... + + 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 eec3500..4201d73 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.19.x - name: Check out code - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: golanci-lint uses: upfluence/action-golangci-lint@master with: