Skip to content

Commit

Permalink
cache: true
Browse files Browse the repository at this point in the history
Signed-off-by: JooYoung Park <[email protected]>
  • Loading branch information
JooyoungPark73 committed Apr 22, 2024
1 parent 28fbb7a commit c157e41
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 24 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ jobs:
name: Build setup scripts
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.21
- name: Set up Go version in go.mod file
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: ${{ github.workspace }}/go.mod
cache-dependency-path: ${{ github.workspace }}/go.sum


- name: Check out the code
uses: actions/checkout@v4
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/cri_minio_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ jobs:
- name: Setup TMPDIR
run: mkdir -p $TMPDIR

- name: Set up Go 1.21
- name: Set up Go version in go.mod file
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: ${{ github.workspace }}/go.mod
cache-dependency-path: ${{ github.workspace }}/go.sum


- name: Check out code into the Go module directory
uses: actions/checkout@v4
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/cri_stock_containerd_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up golang
- name: Set up Go version in go.mod file
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: ${{ github.workspace }}/go.mod
cache-dependency-path: ${{ github.workspace }}/go.sum


- name: Build setup scripts
run: pushd scripts && go build -o setup_tool && popd
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/cri_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up golang
- name: Set up Go version in go.mod file
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version-file: ${{ github.workspace }}/go.mod
cache-dependency-path: ${{ github.workspace }}/go.sum


- name: Add rsync
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ jobs:
test-name: [test, test-man-bench]
steps:

- name: Set up Go 1.21
- name: Set up Go version in go.mod file
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: ${{ github.workspace }}/go.mod
cache-dependency-path: ${{ github.workspace }}/go.sum


- name: Set up Python 3.x
uses: actions/setup-python@v5
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/nightly_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ jobs:
- name: Setup TMPDIR
run: mkdir -p $TMPDIR

- name: Set up Go 1.21
- name: Set up Go version in go.mod file
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: ${{ github.workspace }}/go.mod
cache-dependency-path: ${{ github.workspace }}/go.sum


- name: Upgrade git
run: |
Expand Down Expand Up @@ -77,10 +79,12 @@ jobs:
- name: Setup TMPDIR
run: mkdir -p $TMPDIR

- name: Set up Go 1.21
- name: Set up Go version in go.mod file
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: ${{ github.workspace }}/go.mod
cache-dependency-path: ${{ github.workspace }}/go.sum


- name: Check out code into the Go module directory
uses: actions/checkout@v4
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/openyurt-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up Go 1.21
- name: Set up Go version in go.mod file
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: ${{ github.workspace }}/go.mod
cache-dependency-path: ${{ github.workspace }}/go.sum


- name: Check out the code
uses: actions/checkout@v4
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/stargz_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ jobs:
- name: Checkout LFS objects
run: git lfs checkout

- name: Set up Go 1.21
- name: Set up Go version in go.mod file
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: ${{ github.workspace }}/go.mod
cache-dependency-path: ${{ github.workspace }}/go.sum


- name: Build setup scripts
run: pushd scripts && go build -o setup_tool && popd
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ jobs:
module: [misc, networking, snapshotting]
steps:

- name: Set up Go 1.21
- name: Set up Go version in go.mod file
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: ${{ github.workspace }}/go.mod
cache-dependency-path: ${{ github.workspace }}/go.sum


- name: Set up Python 3.x
uses: actions/setup-python@v5
Expand Down Expand Up @@ -74,10 +76,12 @@ jobs:
module: [profile]
steps:

- name: Set up Go 1.21
- name: Set up Go version in go.mod file
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: ${{ github.workspace }}/go.mod
cache-dependency-path: ${{ github.workspace }}/go.sum


- name: Set up Python 3.x
uses: actions/setup-python@v5
Expand Down Expand Up @@ -122,10 +126,12 @@ jobs:
module: [ ctriface, ctriface/image, devmapper ]
steps:

- name: Set up Go 1.21
- name: Set up Go version in go.mod file
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: ${{ github.workspace }}/go.mod
cache-dependency-path: ${{ github.workspace }}/go.sum


- name: Upgrade git
run: |
Expand Down

0 comments on commit c157e41

Please sign in to comment.