chore: Deprecate Marshal processor #1403
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: pr_checks | |
on: | |
pull_request: | |
jobs: | |
setup-tools: | |
runs-on: "ubuntu-20.04" | |
steps: | |
- name: Checkout Sources | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Cache Tools | |
id: tool-cache | |
uses: actions/cache@v3 | |
with: | |
path: /home/runner/go/bin | |
key: tooling-${{ runner.os }}-${{ hashFiles('./Makefile') }} | |
- name: Install Tools | |
if: steps.tool-cache.outputs.cache-hit != 'true' | |
run: make install-tools | |
check-fmt: | |
runs-on: "ubuntu-20.04" | |
needs: | |
- setup-tools | |
steps: | |
- name: Checkout Sources | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22" | |
check-latest: true | |
- name: Cache Tools | |
id: tool-cache | |
uses: actions/cache@v3 | |
with: | |
path: /home/runner/go/bin | |
key: tooling-${{ runner.os }}-${{ hashFiles('./Makefile') }} | |
- name: Install Tools | |
if: steps.tool-cache.outputs.cache-hit != 'true' | |
run: make install-tools | |
- name: Check Formatting | |
run: make check-fmt | |
check-license: | |
runs-on: "ubuntu-20.04" | |
needs: | |
- setup-tools | |
steps: | |
- name: Checkout Sources | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22" | |
check-latest: true | |
- name: Cache Tools | |
id: tool-cache | |
uses: actions/cache@v3 | |
with: | |
path: /home/runner/go/bin | |
key: tooling-${{ runner.os }}-${{ hashFiles('./Makefile') }} | |
- name: Install Tools | |
if: steps.tool-cache.outputs.cache-hit != 'true' | |
run: make install-tools | |
- name: Check License Headers | |
run: make check-license | |
gosec: | |
runs-on: ubuntu-20.04 | |
needs: | |
- setup-tools | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22" | |
check-latest: true | |
- name: Cache Tools | |
id: tool-cache | |
uses: actions/cache@v3 | |
with: | |
path: /home/runner/go/bin | |
key: tooling-${{ runner.os }}-${{ hashFiles('./Makefile') }} | |
- name: Install Tools | |
if: steps.tool-cache.outputs.cache-hit != 'true' | |
run: make install-tools | |
- name: Run Gosec Security Scanner | |
run: make gosec | |
misspell: | |
runs-on: "ubuntu-20.04" | |
needs: | |
- setup-tools | |
steps: | |
- name: Checkout Sources | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22" | |
check-latest: true | |
- name: Cache Tools | |
id: tool-cache | |
uses: actions/cache@v3 | |
with: | |
path: /home/runner/go/bin | |
key: tooling-${{ runner.os }}-${{ hashFiles('./Makefile') }} | |
- name: Install Tools | |
if: steps.tool-cache.outputs.cache-hit != 'true' | |
run: make install-tools | |
- name: Check for Misspelled Words in Doc Files | |
run: make misspell | |
lint: | |
runs-on: ubuntu-20.04 | |
needs: | |
- setup-tools | |
steps: | |
- name: Checkout Sources | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22" | |
check-latest: true | |
- name: Cache Tools | |
id: tool-cache | |
uses: actions/cache@v3 | |
with: | |
path: /home/runner/go/bin | |
key: tooling-${{ runner.os }}-${{ hashFiles('./Makefile') }} | |
- name: Install Tools | |
if: steps.tool-cache.outputs.cache-hit != 'true' | |
run: make install-tools | |
- name: Run Revive Linter | |
run: make lint | |
# Below checks don't need to run `make install-tools` | |
check-plugin-docs: | |
runs-on: "ubuntu-20.04" | |
steps: | |
- name: Checkout Sources | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22" | |
check-latest: true | |
- name: Plugin Doc Generation | |
run: make create-plugin-docs | |
- name: Check Changed Plugin Docs | |
uses: tj-actions/verify-changed-files@v17 | |
id: verify-changed-files | |
with: | |
files: | | |
docs/plugins | |
- name: Verify No Plugin Doc Changes | |
if: steps.verify-changed-files.outputs.files_changed == 'true' | |
run: exit 1 |