diff --git a/.github/workflows/ci-check.yaml b/.github/workflows/ci-check.yaml new file mode 100644 index 0000000000..ec9ec4aa49 --- /dev/null +++ b/.github/workflows/ci-check.yaml @@ -0,0 +1,46 @@ +name: Check + +on: + push: + branches: + - main + paths-ignore: + - 'docs/**/*.md' + - '*.md' + - 'OWNERS' + - 'OWNERS_ALIASES' + - 'LICENSE' + pull_request: + branches: + - main + paths-ignore: + - 'docs/**/*.md' + - '*.md' + - 'OWNERS' + - 'OWNERS_ALIASES' + - 'LICENSE' + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + precheck: + name: Precheck + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - uses: actions/checkout@v4 + - uses: knative/actions/setup-go@main + + - name: Check and Lint + run: make check + - name: Check Generated Schema File + run: make check-schema + - name: Check Templates + run: make check-templates + - name: Check Embedded FS + run: make check-embedded-fs diff --git a/.github/workflows/functions.yaml b/.github/workflows/functions.yaml index 7d809102e8..76ab28c078 100644 --- a/.github/workflows/functions.yaml +++ b/.github/workflows/functions.yaml @@ -12,9 +12,21 @@ on: push: branches: - main + paths-ignore: + - 'docs/**/*.md' + - '*.md' + - 'OWNERS' + - 'OWNERS_ALIASES' + - 'LICENSE' pull_request: branches: - main + paths-ignore: + - 'docs/**/*.md' + - '*.md' + - 'OWNERS' + - 'OWNERS_ALIASES' + - 'LICENSE' workflow_dispatch: concurrency: