name: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
timeout-minutes: 8 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.17 | |
- name: Install tools | |
run: | | |
make install-tools | |
- name: Lint | |
run: | | |
make lint | |
- name: Unit test | |
run: | | |
make test | |
- name: Check license | |
run: | | |
make check-license |