Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cache for go modules to speed up CI #3

Closed
jbeemster opened this issue Sep 23, 2020 · 0 comments
Closed

Add cache for go modules to speed up CI #3

jbeemster opened this issue Sep 23, 2020 · 0 comments

Comments

@jbeemster
Copy link
Contributor

jbeemster commented Sep 23, 2020

Add this block after your code checkout:

    - name: Cache go modules
      uses: actions/cache@v2
      with:
        path: ~/go/pkg/mod
        key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
        restore-keys: |
          ${{ runner.os }}-go-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant