diff --git a/.github/workflows/ci-lint.yaml b/.github/workflows/ci-lint.yaml index a724a04..70471d8 100644 --- a/.github/workflows/ci-lint.yaml +++ b/.github/workflows/ci-lint.yaml @@ -9,12 +9,17 @@ jobs: lint: runs-on: ubuntu-latest steps: + - name: Print branch + run: git branch --show-current - name: Install Go uses: actions/setup-go@v4 with: - go-version: 1.21.0 + go-version-file: go.mod + cache: true - name: Checkout code uses: actions/checkout@v3 + - name: Clear golangci-lint cache + run: golangci-lint cache clean - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: diff --git a/.github/workflows/ci-test.yaml b/.github/workflows/ci-test.yaml index 607ab68..5d3e73f 100644 --- a/.github/workflows/ci-test.yaml +++ b/.github/workflows/ci-test.yaml @@ -17,6 +17,8 @@ jobs: runs-on: ubuntu-latest container: golang:${{ matrix.containers }} steps: + - name: Print branch + run: git branch --show-current - name: Checkout code uses: actions/checkout@v3 - uses: actions/cache@v3