diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f8465b2f922769a29fe965165294f93aa64e773f..0551702f57525d1901c2b07c55dbcf8b62746c8e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -27,6 +27,14 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Get dependencies run: | go get -v -t -d ./...