feat(docs): more links in readme #42
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
GOLANGCI_LINT_VERSION: v1.55 | |
jobs: | |
test: | |
name: Test | |
strategy: | |
matrix: | |
version: ["1.20", "1.21", "1.22"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: ${{ matrix.version }} | |
cache: true | |
- run: make test | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version-file: go.mod | |
cache: false | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 | |
with: | |
version: ${{ env.GOLANGCI_LINT_VERSION }} | |
- name: tidy | |
run: | | |
make download | |
git diff-index HEAD | |
git diff --minimal --color=always --compact-summary --exit-code HEAD || FAILED=true ; | |
if [[ $FAILED ]]; | |
then echo "❗️please run \"go mod tidy\" locally and commit the changes" | |
exit 1 | |
fi |