-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use
ubuntu-latest-m
runner (#6918)
- Loading branch information
1 parent
55fa610
commit d77d9ce
Showing
3 changed files
with
11 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,18 +15,8 @@ jobs: | |
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
matrix: | ||
operating-system: [ubuntu-latest, windows-latest, macos-latest] | ||
operating-system: [ubuntu-latest-m, windows-latest, macos-latest] | ||
steps: | ||
- name: Maximize build space | ||
uses: easimon/maximize-build-space@v10 | ||
with: | ||
root-reserve-mb: 32768 # The golangci-lint uses a lot of space. | ||
remove-android: "true" | ||
remove-docker-images: "true" | ||
remove-dotnet: "true" | ||
remove-haskell: "true" | ||
if: matrix.operating-system == 'ubuntu-latest' | ||
|
||
- uses: actions/[email protected] | ||
|
||
- name: Set up Go | ||
|
@@ -40,15 +30,15 @@ jobs: | |
echo "Run 'go mod tidy' and push it" | ||
exit 1 | ||
fi | ||
if: matrix.operating-system == 'ubuntu-latest' | ||
if: matrix.operating-system == 'ubuntu-latest-m' | ||
|
||
- name: Lint | ||
id: lint | ||
uses: golangci/[email protected] | ||
with: | ||
version: v1.58 | ||
args: --verbose --out-format=line-number | ||
if: matrix.operating-system == 'ubuntu-latest' | ||
if: matrix.operating-system == 'ubuntu-latest-m' | ||
|
||
- name: Check if linter failed | ||
run: | | ||
|
@@ -69,14 +59,14 @@ jobs: | |
echo "Run 'mage docs:generate' and push it" | ||
exit 1 | ||
fi | ||
if: matrix.operating-system == 'ubuntu-latest' | ||
if: matrix.operating-system == 'ubuntu-latest-m' | ||
|
||
- name: Run unit tests | ||
run: mage test:unit | ||
|
||
integration: | ||
name: Integration Test | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-latest-m | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/[email protected] | ||
|
@@ -96,17 +86,8 @@ jobs: | |
|
||
k8s-integration: | ||
name: K8s Integration Test | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-latest-m | ||
steps: | ||
- name: Maximize build space | ||
uses: easimon/maximize-build-space@v10 | ||
with: | ||
root-reserve-mb: 32768 # The Go cache (`~/.cache/go-build` and `~/go/pkg`) requires a lot of storage space. | ||
remove-android: "true" | ||
remove-docker-images: "true" | ||
remove-dotnet: "true" | ||
remove-haskell: "true" | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/[email protected] | ||
|
||
|
@@ -147,17 +128,8 @@ jobs: | |
vm-test: | ||
name: VM Integration Test | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-latest-m | ||
steps: | ||
- name: Maximize build space | ||
uses: easimon/maximize-build-space@v10 | ||
with: | ||
root-reserve-mb: 32768 # The Go cache (`~/.cache/go-build` and `~/go/pkg`) requires a lot of storage space. | ||
remove-android: 'true' | ||
remove-docker-images: 'true' | ||
remove-dotnet: 'true' | ||
remove-haskell: 'true' | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
|
@@ -178,20 +150,10 @@ jobs: | |
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
matrix: | ||
operating-system: [ubuntu-latest, windows-latest, macos-latest] | ||
operating-system: [ubuntu-latest-m, windows-latest, macos-latest] | ||
env: | ||
DOCKER_CLI_EXPERIMENTAL: "enabled" | ||
steps: | ||
- name: Maximize build space | ||
uses: easimon/maximize-build-space@v10 | ||
with: | ||
root-reserve-mb: 32768 # The Go cache (`~/.cache/go-build` and `~/go/pkg`) requires a lot of storage space. | ||
remove-android: 'true' | ||
remove-docker-images: 'true' | ||
remove-dotnet: 'true' | ||
remove-haskell: 'true' | ||
if: matrix.operating-system == 'ubuntu-latest' | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
|