From 2b4d7cfe85ed5daf03d796c768b4fed12d7660d7 Mon Sep 17 00:00:00 2001 From: umarcor Date: Tue, 9 Feb 2021 06:22:37 +0100 Subject: [PATCH] ci: add actions/cache step --- .github/workflows/Test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index af7320183..cce4d0ed8 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -30,6 +30,12 @@ jobs: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-${{ matrix.go }}-${{ hashFiles('**/go.sum') }} + restore-keys: ${{ runner.os }}-${{ matrix.go }}- + - run: | curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b $HOME/go/bin/ latest go install github.com/kyoh86/richgo @@ -61,6 +67,12 @@ jobs: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-${{ matrix.go }}-${{ hashFiles('**/go.sum') }} + restore-keys: ${{ runner.os }}-${{ matrix.go }}- + - run: | curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b $HOME/go/bin latest go install github.com/kyoh86/richgo