[bug]: fix build docker fail #1976
This file contains hidden or 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: LinDB CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
golangci: | |
name: Golangci-Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21.1 | |
cache: false | |
id: go | |
- name: Make Mock files | |
run: make gomock | |
- name: Make Deps | |
run: make deps | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v5 | |
with: | |
version: v1.57.2 | |
skip-cache: true | |
skip-save-cache: true | |
linux-test-with-coverage: | |
name: Uint Test With Coverage(Linux) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
cache: true | |
id: go | |
- name: Make Mock files | |
run: make gomock | |
- name: Test | |
run: make test-without-lint | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4.2.0 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
darwin-test: | |
name: Unit Test(MacOS) | |
runs-on: macos-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
cache: true | |
id: go | |
- name: Make Mock files | |
run: make gomock | |
- name: Test | |
run: make test-without-lint | |
windows-test: | |
name: Unit Test(Windows) | |
runs-on: windows-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
cache: true | |
id: go | |
- name: Set up MinGW | |
uses: csukuangfj/setup-mingw@v2.2.1 | |
with: | |
platform: x64 | |
- name: Make Mock files | |
run: make gomock | |
- name: Test | |
run: make test-without-lint | |
linux-e2e-test: | |
name: E2E Test(Linux) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
cache: true | |
- name: Test | |
run: make e2e | |
e2e-test-darwin: | |
name: E2E Test(MacOS) | |
runs-on: macos-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
cache: true | |
- name: Test | |
run: make e2e | |
e2e-test-windows: | |
name: E2E Test(Windows) | |
runs-on: windows-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
cache: true | |
- name: Set up MinGW | |
uses: csukuangfj/setup-mingw@v2.2.1 | |
with: | |
platform: x64 | |
- name: Test | |
run: make e2e | |
linux-crossversion: | |
name: Build-Lind-CrossVersion | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
cache: true | |
- name: Build | |
run: make build-lind | |