diff --git a/.forgejo/workflows/format-lint-test.yaml b/.forgejo/workflows/format-lint-test.yaml index e87c328..1b6a415 100644 --- a/.forgejo/workflows/format-lint-test.yaml +++ b/.forgejo/workflows/format-lint-test.yaml @@ -20,6 +20,16 @@ jobs: with: go-version: '1.23.3' + - name: Setup cache + uses: actions/cache@v4 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-golang- + - name: Run Format Check run: | make format @@ -29,13 +39,23 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v4 - name: Setup Go uses: actions/setup-go@v5 with: go-version: '1.23.3' + - name: Setup cache + uses: actions/cache@v4 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-golang- + - name: Run Tests run: | make test-coverage