From 0bd842a9ed8083b86697218ff9c5fdccd8b759df Mon Sep 17 00:00:00 2001 From: Kazuki_Kamizuru Date: Sun, 4 Aug 2024 10:26:10 +0900 Subject: [PATCH 1/2] deps: upgrade some actions --- .github/workflows/ci.yml | 34 ++++++++-------------------------- .github/workflows/schedule.yml | 17 ++++------------- 2 files changed, 12 insertions(+), 39 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd21f6b..a324811 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,23 +6,14 @@ jobs: code_check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Golang - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: "1.20" - - - name: Use Cache - uses: actions/cache@v3 - id: app_cache - with: - path: ~/go/pkg/mod - key: ${{ runner.OS }}-${{ hashFiles('**/go.sum') }} - - - name: Install dependencies - if: steps.app_cache.outputs.cache-hit != 'true' - run: go mod download + cache-dependency-path: | + **/go.sum - name: Execute code check run: go vet ./... @@ -30,23 +21,14 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Golang - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: "1.20" - - - name: Use Cache - uses: actions/cache@v3 - id: app_cache - with: - path: ~/go/pkg/mod - key: ${{ runner.OS }}-${{ hashFiles('**/go.sum') }} - - - name: Install dependencies - if: steps.app_cache.outputs.cache-hit != 'true' - run: go mod download + cache-dependency-path: | + **/go.sum - name: Execute code check run: go test ./... diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml index 893c216..d30593a 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -9,25 +9,16 @@ jobs: run: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: main - name: Set up Golang - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: "1.20" - - - name: Use Cache - uses: actions/cache@v3 - id: app_cache - with: - path: ~/go/pkg/mod - key: ${{ runner.OS }}-${{ hashFiles('**/go.sum') }} - - - name: Install dependencies - if: steps.app_cache.outputs.cache-hit != 'true' - run: go mod download + cache-dependency-path: | + **/go.sum - name: Execute env: From 166c23930c738b14111e57373e0cdaa082088425 Mon Sep 17 00:00:00 2001 From: Kazuki_Kamizuru Date: Sun, 4 Aug 2024 10:28:36 +0900 Subject: [PATCH 2/2] chore: fix miss task name --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a324811..7db9085 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,5 +30,5 @@ jobs: cache-dependency-path: | **/go.sum - - name: Execute code check + - name: Execute test run: go test ./...