chore: releasing v0.15.0 #413
Workflow file for this run
This file contains hidden or 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: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "*" ] | |
permissions: | |
contents: read | |
jobs: | |
commit_lint: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
pull-requests: read | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1 | |
golangci: | |
name: lint | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
pull-requests: read | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
with: | |
go-version-file: 'go.mod' | |
- name: Run golangci-lint | |
run: make lint | |
# TODO(prometherion): enable back once golangci-lint is built from v1.24 rather than v1.23 | |
# - name: Run golangci-lint | |
# uses: golangci/[email protected] | |
# with: | |
# version: v1.54.2 | |
# args: --timeout 5m --config .golangci.yml | |
diff: | |
name: diff | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
with: | |
go-version-file: 'go.mod' | |
- run: make release | |
env: | |
CGO_ENABLED: 0 | |
- name: Checking if YAML installer file is not aligned | |
run: if [[ $(git diff | wc -l) -gt 0 ]]; then echo ">>> Untracked generated files have not been committed" && git --no-pager diff && exit 1; fi | |
- name: Checking if YAML installer generated untracked files | |
run: test -z "$(git ls-files --others --exclude-standard 2> /dev/null)" | |
- name: Checking if source code is not formatted | |
run: test -z "$(git diff 2> /dev/null)" |