chore: update readme #21
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: testing | |
on: | |
push: | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: read | |
checks: write | |
jobs: | |
code-lint: | |
name: code-lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
with: | |
go-version: stable | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run linter | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
version: v1.60.3 | |
only-new-issues: false # show only new issues if it's a pull request | |
args: -v --timeout=10m --out-format=colored-line-number | |
unit-test: | |
name: unit-test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
with: | |
go-version: stable | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run tests | |
run: go test ./... |