Skip to content

Update ci.yml - on main branch too (#62) #104

Update ci.yml - on main branch too (#62)

Update ci.yml - on main branch too (#62) #104

Workflow file for this run

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