feat: support to download cn region binaries #486
Workflow file for this run
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
name: CI | |
on: [ | |
push, | |
pull_request | |
] | |
env: | |
GO_VERSION: "1.21" | |
permissions: | |
contents: read | |
jobs: | |
typos-check: | |
name: spell-typos-check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Actions Repository | |
uses: actions/checkout@v3 | |
- name: Check spelling with custom config file | |
uses: crate-ci/typos@v1.14.8 | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54 | |
# '-v' flag is required to show the output of golangci-lint. | |
args: -v | |
unit-test: | |
name: coverage-test | |
runs-on: ubuntu-latest | |
needs: [ lint ] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Unit test | |
run: | | |
make coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
files: ./coverage.xml | |
name: codecov-gtctl | |
verbose: true | |
e2e: | |
name: e2e | |
runs-on: ubuntu-latest | |
needs: [ lint ] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Run e2e | |
run: | | |
make e2e |