CI #2906
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: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: '0 17 * * *' | |
jobs: | |
shell-ci: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Lint shell scripts, ignoring third-party files | |
run: | | |
find . -name "*.sh" | grep -v site | grep -v vendor | grep -v node_modules | grep -v demo/demo-magic > shell_files.out | |
shellcheck $(cat shell_files.out) | |
go-ci: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
env: | |
GOPATH: /home/runner/work/krm-functions-sdk/go | |
GO111MODULE: on | |
steps: | |
- name: Set up Go 1.24 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.24 | |
id: go | |
- name: Check out code into GOPATH | |
uses: actions/checkout@v1 | |
with: | |
path: go/src/github.com/kptdev/krm-functions-sdk | |
- name: Build, Test, Lint | |
run: hack/ci-validate-go.sh |