Update README #14
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
jobs: | |
setup: | |
name: CI | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/marketplace/actions/checkout` | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
# https://github.com/marketplace/actions/setup-go-environment | |
- name: Set up Go 1.x >= 1.18 | |
uses: actions/setup-go@v3 | |
with: | |
# requires go.sum file (i.e., external libraries) | |
cache: true | |
go-version-file: go.mod | |
# https://github.com/marketplace/actions/run-golangci-lint#how-to-use | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
- name: go test | |
run: go test -v ./... | |
- name: Install yamllint | |
run: pip install yamllint | |
- name: Lint YAML files | |
run: yamllint . | |
name: CI | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
push: | |
branches: | |
- master | |
workflow_call: | |
permissions: | |
contents: read |