Skip to content

docs: update README and example code #19

docs: update README and example code

docs: update README and example code #19

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
check:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
cache: true
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
- name: Install pre-commit
run: |
python -m pip install --upgrade pip
pip install pre-commit
- name: Install golang checking tools
run: |
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest
go install -v github.com/go-critic/go-critic/cmd/gocritic@latest
- name: Install embedme
run: npm install -g embedme
- name: Run pre-commit
run: pre-commit run --all-files