Skip to content

Bump github.com/fatih/color from 1.18.0 to 1.19.0 #388

Bump github.com/fatih/color from 1.18.0 to 1.19.0

Bump github.com/fatih/color from 1.18.0 to 1.19.0 #388

Workflow file for this run

name: ci
on: [pull_request] # yamllint disable-line rule:truthy
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull-request.number || github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
permissions:
contents: read
checks: write # Used to annotate code in the PR
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: "go.mod"
- name: build
run: |
go build -v ./...
linting:
needs: [build]
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: "go.mod"
- name: gofmt
run: |
gofmt_out=$(gofmt -d $(find * -name '*.go' ! -path 'vendor/*' ! -path 'third_party/*'))
if [[ -n "$gofmt_out" ]]; then
failed=1
fi
echo "$gofmt_out"
- name: golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
version: v2.7.2
args: --new-from-merge-base=origin/${{ github.base_ref }} --timeout=10m
- name: yamllint
run: |
apt update && apt install -y yamllint
yamllint -c .yamllint $(find . -path ./vendor -prune -o -type f -regex ".*y[a]ml" -print | tr '\n' ' ')
- name: check-license
run: |
go install github.com/google/go-licenses@v1.0.0
go-licenses check ./...
tests:
needs: [build]
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: "go.mod"
- name: build
run: |
make test-unit-verbose-and-race
generated:
needs: [build]
name: Check generated code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: "go.mod"
- name: generated
run: |
go install github.com/google/go-licenses@v1.0.0 # Not sure why it is needed here
./hack/verify-codegen.sh
multi-arch-build:
needs: [build]
name: Multi-arch build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: "go.mod"
- name: Free disk space
run: |
echo "--- Disk space before cleanup ---"
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker image prune -a -f
echo "--- Disk space after cleanup ---"
df -h
- name: make cross
run: |
make cross
e2e-tests:
needs: [build]
uses: ./.github/workflows/e2e-matrix.yml
ci-summary:
name: CI summary
if: always()
needs:
- build
- linting
- tests
- generated
- multi-arch-build
- e2e-tests
runs-on: ubuntu-latest
steps:
- name: Check job results
run: |
echo "build: ${{ needs.build.result }}"
echo "linting: ${{ needs.linting.result }}"
echo "tests: ${{ needs.tests.result }}"
echo "generated: ${{ needs.generated.result }}"
echo "multi-arch-build: ${{ needs.multi-arch-build.result }}"
echo "e2e-tests: ${{ needs.e2e-tests.result }}"
results=(
"${{ needs.build.result }}"
"${{ needs.linting.result }}"
"${{ needs.tests.result }}"
"${{ needs.generated.result }}"
"${{ needs.multi-arch-build.result }}"
"${{ needs.e2e-tests.result }}"
)
for result in "${results[@]}"; do
if [[ "$result" != "success" && "$result" != "skipped" ]]; then
echo "One or more jobs failed"
exit 1
fi
done
echo "All jobs passed or were skipped"