update readme #5
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: | |
release: | |
types: [published] | |
jobs: | |
test: | |
name: Code quality and unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup go-task | |
uses: arduino/setup-task@v1 | |
with: | |
version: 3.x | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.23.x' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
cache-dependency-path: | | |
datatrails-common-api/go.sum | |
- name: Install Go quality tools | |
run: | | |
go install golang.org/x/tools/cmd/[email protected] | |
go install github.com/axw/gocov/[email protected] | |
go install github.com/jstemmer/go-junit-report/[email protected] | |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.60.3 | |
- name: Code Quality | |
run: | | |
# Note: it is by design that we don't use the builder | |
task codeqa | |
- name: Test | |
run: | | |
# Note: it is by design that we don't use the builder | |
task test |