feat: add Update option on config (#78) #221
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: Go | |
on: | |
pull_request: | |
paths-ignore: | |
- 'images/**' | |
- '**/*.md' | |
branches: | |
- main | |
push: | |
paths-ignore: | |
- 'images/**' | |
- '**/*.md' | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Run linting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21.x | |
- uses: actions/checkout@v3 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: 'latest' | |
args: -c ./golangci.yml | |
- name: Format lint | |
run: | | |
make install-tools && make format && git diff --quiet | |
test: | |
name: Run tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21.x | |
- name: Run Tests | |
run: make test-verbose |