diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d0b5e5b..e3b7984 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,6 +12,14 @@ jobs: - uses: actions/setup-go@v5 with: go-version: '1.23' + - name: Cache Go modules + uses: actions/cache@v4 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} + restore-keys: ${{ runner.os }}-go- - name: Run tests run: go test ./... - name: Deploy to server