client structs renames #63
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- "**" | |
paths: | |
- "**.go" | |
- ".github/workflows/ci.yaml" | |
- "go.sum" | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ">=1.21" | |
cache: false | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest | |
codegen: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ">=1.21" | |
- name: Install betteralign | |
run: go install github.com/dkorunic/betteralign/cmd/betteralign@latest | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install node dependencies | |
run: npm ci --prefix srcgen | |
- name: Code generation | |
run: cd srcgen && npm run update && node index.js | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ">=1.21" | |
- name: Run tests | |
run: go test ./... -v -race -coverprofile cover.out -covermode atomic | |
- name: Run only DDragon/CDragon integration tests | |
run: go test -v -tags=integration ./test/integration | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./cover.out |