This repository has been archived by the owner on May 31, 2024. It is now read-only.
Bump sigs.k8s.io/kustomize/api from 0.16.0 to 0.17.1 (#7) #47
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: Test Incoming Changes | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
env: | |
TERM: xterm-color | |
CM_BIN: /usr/local/bin/checkmake | |
CM_URL_LINUX: https://github.com/mrtazz/checkmake/releases/download/0.2.2/checkmake-0.2.2.linux.amd64 # yamllint disable-line | |
jobs: | |
lint: | |
name: Run Linters and Vet | |
runs-on: ubuntu-latest | |
env: | |
SHELL: /bin/bash | |
steps: | |
- name: Set up Go 1.22 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.2 | |
- name: Disable default go problem matcher | |
run: echo "::remove-matcher owner=go::" | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.sha }} | |
- name: Install yaml dependency | |
run: pip3 install pyyaml | |
env: | |
SHELL: /bin/bash | |
- name: Install checkmake | |
run: | | |
curl --location --output $CM_BIN --silent $CM_URL_LINUX | |
chmod +x $CM_BIN | |
- name: Install Shfmt | |
uses: mfinelli/setup-shfmt@v3 | |
- name: Golangci-lint | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
version: v1.56 | |
args: --timeout 10m0s | |
- name: Checkmake | |
run: checkmake --config=.checkmake Makefile | |
- name: Shfmt | |
run: shfmt -d scripts | |
- name: Markdownlint | |
uses: nosborn/[email protected] | |
with: | |
files: . | |
- name: ShellCheck | |
uses: ludeeus/action-shellcheck@master | |
- name: Typos | |
uses: crate-ci/typos@master | |
- name: Yamllint | |
uses: ibiqlik/action-yamllint@v3 | |
with: | |
config_file: .yamllint.yml | |
file_or_dir: test/init-source-crs test/pgt-input | |
- name: Go vet | |
run: make vet | |
smoke-tests-local: | |
name: Run Local Smoke Tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Set up Go 1.22 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.2 | |
- name: Disable default go problem matcher | |
run: echo "::remove-matcher owner=go::" | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.sha }} | |
- name: Install yaml dependency | |
run: pip3 install pyyaml | |
env: | |
SHELL: /bin/bash | |
- name: Build binary linux-amd64 | |
run: make build-linux-amd64 | |
- name: Build binary darwin-arm64 | |
run: sudo make clean && make build-darwin-arm64 | |
- name: Build local architecture and Basic test | |
run: sudo make clean && make test |