docs: overlap details #355
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: Build & Test | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.18' | |
- name: Do format | |
run: | | |
go install golang.org/x/tools/cmd/goimports@latest | |
./build.sh format | |
git status | |
- name: Check format | |
run: | | |
if [[ $(git status --porcelain) ]]; then | |
echo "Error: Please format files via ./build.sh format first "; | |
echo "Found not format files:" | |
git status --porcelain | |
exit 1; | |
fi | |
build-ubuntu: | |
runs-on: ubuntu-latest | |
needs: [ lint ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.18' | |
- name: Test | |
run: go test -v ./... | |
build-windows: | |
needs: [ lint ] | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.18' | |
- name: Test | |
run: go test -v ./... | |
integration-test: | |
needs: [ build-ubuntu, build-windows ] | |
uses: go-echarts/go-echarts-pipeline/.github/workflows/integration.yml@main |