mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
922 B
37 lines
922 B
name: build-test
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
- "dev-v3"
|
|
- "release-**"
|
|
pull_request:
|
|
branches:
|
|
- "main"
|
|
- "dev-v3"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout source code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4.2.2
|
|
- name: Add variables to environment file
|
|
run: cat ".github/env" >> "$GITHUB_ENV"
|
|
- name: Setup Go
|
|
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # pin@5.5.0
|
|
with:
|
|
go-version: '${{ env.GOLANG_VERSION }}'
|
|
check-latest: true
|
|
- name: Test source headers are present
|
|
run: make test-source-headers
|
|
- name: Check if go mod is tidy
|
|
run: go mod tidy -diff
|
|
- name: Run unit tests
|
|
run: make test-coverage
|
|
- name: Test build
|
|
run: make build
|