Update ci.yml - on main branch too (#62) #104
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: | |
# We run the CI checks on any pull request updates or pushes to the main branch after PR merge. | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
check-latest: true | |
- run: | | |
go vet ./... | |
go test ./... --cover | |
- name: Install license check tool | |
run: go install github.com/google/addlicense@latest | |
- name: Check licenses | |
run: addlicense -l apache -check -v -ignore '**/*.yaml' -c Humanitec ./loader ./schema ./types ./pkg |