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 9eb2de4
Show file tree
Hide file tree
Showing 10 changed files with 76 additions and 64 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ jobs:
runs-on: ubuntu-20.04
steps:

- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
# to add commit DCO checks later
fetch-depth: 21

- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

- name: Check code
uses: golangci/[email protected]
with:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/build_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ jobs:
name: Build setup scripts
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.21'


- name: Check out the code
uses: actions/checkout@v4

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

- name: Build scripts
run: pushd scripts && go build -o setup_tool && popd

Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/cri_minio_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ jobs:
steps:
- name: Setup TMPDIR
run: mkdir -p $TMPDIR

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- 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'

- name: Check out code into the Go module directory
uses: actions/checkout@v4
go-version-file: ${{ github.workspace }}/go.mod
cache-dependency-path: ${{ github.workspace }}/go.sum

- name: Build
run: go build
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
15 changes: 8 additions & 7 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,17 @@ jobs:
matrix:
test-name: [test, test-man-bench]
steps:

- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
lfs: true

- 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 All @@ -51,11 +57,6 @@ jobs:
run: |
sudo apt update
sudo apt install rsync -y
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
lfs: true
- name: Build setup scripts
run: pushd scripts && go build -o setup_tool && popd
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/nightly_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,24 @@ jobs:
steps:
- name: Setup TMPDIR
run: mkdir -p $TMPDIR

- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.21'


- name: Upgrade git
run: |
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt update
sudo apt install git -y
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
lfs: true

- name: Set up Go version in go.mod file
uses: actions/setup-go@v5
with:
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 Expand Up @@ -77,14 +78,15 @@ jobs:
- name: Setup TMPDIR
run: mkdir -p $TMPDIR

- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.21'

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go version in go.mod file
uses: actions/setup-go@v5
with:
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
11 changes: 6 additions & 5 deletions .github/workflows/openyurt-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.21'

- name: Check out the code
uses: actions/checkout@v4

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

- name: Build scripts
run:
pushd scripts/openyurt-deployer && go build -o oy_deploy && popd
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/stargz_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ 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
38 changes: 19 additions & 19 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ jobs:
matrix:
module: [misc, networking, snapshotting]
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- 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
with:
python-version: '3.x'

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Build setup scripts
run: pushd scripts && go build -o setup_tool && popd

Expand Down Expand Up @@ -73,20 +73,20 @@ jobs:
matrix:
module: [profile]
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- 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
with:
python-version: '3.x'

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Build setup scripts
run: pushd scripts && go build -o setup_tool && popd

Expand Down Expand Up @@ -121,22 +121,22 @@ jobs:
matrix:
module: [ ctriface, ctriface/image, devmapper ]
steps:

- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.21'

- name: Upgrade git
run: |
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt update
sudo apt install git -y
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
lfs: true

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

- name: Add rsync
run: |
Expand Down

0 comments on commit 9eb2de4

Please sign in to comment.