diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c2d69f5..9f23a72 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -22,6 +22,13 @@ jobs: with: go-version-file: "go.mod" + - 'name': 'Set up tools cache' + 'uses': 'actions/cache@v4' + 'with': + 'path': "${{ github.workspace }}/bin" + 'key': "${{ runner.os }}-${{ github.job }}-tools-${{ hashFiles('.toolbox.mk') }}" + 'restore-keys': '${{ runner.os }}-${{ github.job }}-tools-' + - name: Lint run: make lint @@ -42,6 +49,13 @@ jobs: with: go-version-file: "go.mod" + - 'name': 'Set up tools cache' + 'uses': 'actions/cache@v4' + 'with': + 'path': "${{ github.workspace }}/bin" + 'key': "${{ runner.os }}-${{ github.job }}-tools-${{ hashFiles('.toolbox.mk') }}" + 'restore-keys': '${{ runner.os }}-${{ github.job }}-tools-' + - name: Model run: make model @@ -68,5 +82,12 @@ jobs: with: go-version-file: "go.mod" + - 'name': 'Set up tools cache' + 'uses': 'actions/cache@v4' + 'with': + 'path': "${{ github.workspace }}/bin" + 'key': "${{ runner.os }}-${{ github.job }}-tools-${{ hashFiles('.toolbox.mk') }}" + 'restore-keys': '${{ runner.os }}-${{ github.job }}-tools-' + - name: Run GoReleaser run: make test-release