Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: switch amd64 tests to Github Action
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
- Loading branch information
Showing
15 changed files
with
197 additions
and
116 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
name: Main CI WorkFlow | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
name: Verify vendor, licenses, do lint | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.14.x | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
|
||
- name: Install dependences | ||
run: | | ||
sudo apt-get install -y jq | ||
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | BINARY=golangci-lint sh -s -- -d -b $(go env GOPATH)/bin v1.23.7 | ||
- name: Run verify test | ||
run: make verify | ||
|
||
- name: Run lint test | ||
run: make lint | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Multiple build | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.14.x | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
|
||
- name: Install dependences | ||
run: sudo apt-get install -y upx-ucl gcc-aarch64-linux-gnu libc6-dev-arm64-cross gcc-arm-linux-gnueabi libc6-dev-armel-cross | ||
|
||
- name: Checkout code into the Go module directory | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- run: make | ||
|
||
- run: make bluetoothdevice | ||
|
||
- run: make smallbuild | ||
|
||
- run: make crossbuild | ||
|
||
- run: make crossbuild GOARM=GOARM7 | ||
|
||
basic_test: | ||
runs-on: ubuntu-latest | ||
name: Unit test, integration test edge | ||
env: | ||
GO111MODULE: on | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.14.x | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
|
||
- name: Install dependences | ||
run: | | ||
command -v ginkgo || go get github.com/onsi/ginkgo/ginkgo | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- run: make test | ||
|
||
- run: make integrationtest | ||
|
||
e2e_test: | ||
runs-on: ubuntu-latest | ||
name: E2e test | ||
env: | ||
GO111MODULE: on | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.14.x | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
|
||
- name: Install dependences | ||
run: | | ||
command -v ginkgo || go get github.com/onsi/ginkgo/ginkgo | ||
command -v kind || go get sigs.k8s.io/kind@v0.9.0 | ||
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.19.3/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- run: make e2e | ||
|
||
keadm_e2e_test: | ||
runs-on: ubuntu-latest | ||
name: Keadm e2e test | ||
env: | ||
GO111MODULE: on | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.14.x | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
|
||
- name: Install dependences | ||
run: | | ||
command -v ginkgo || go get github.com/onsi/ginkgo/ginkgo | ||
command -v kind || go get sigs.k8s.io/kind@v0.9.0 | ||
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.19.3/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl | ||
export RELEASE_VERSION=$(wget -qO - https://kubeedge.io/latestversion | cat) | ||
sudo wget -qP /etc/kubeedge https://github.com/kubeedge/kubeedge/releases/download/${RELEASE_VERSION}/checksum_kubeedge-${RELEASE_VERSION}-linux-amd64.tar.gz.txt | ||
sudo wget -qP /etc/kubeedge https://github.com/kubeedge/kubeedge/releases/download/${RELEASE_VERSION}/kubeedge-${RELEASE_VERSION}-linux-amd64.tar.gz | ||
echo "$(cat /etc/kubeedge/checksum_kubeedge-${RELEASE_VERSION}-linux-amd64.tar.gz.txt) /etc/kubeedge/kubeedge-${RELEASE_VERSION}-linux-amd64.tar.gz" | sha512sum -c | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- run: make keadm_e2e | ||
|
||
docker_build: | ||
runs-on: ubuntu-latest | ||
name: Multiple docker image build | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.14.x | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- run: make cloudimage | ||
|
||
- run: make admissionimage | ||
|
||
- run: make edgeimage ARCH="amd64" | ||
|
||
- run: make edgesiteimage ARCH="amd64" | ||
|
||
- run: make bluetoothdevice_image |
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
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.