config: add file storage option (#1230) #2690
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: Test | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
steps: | |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 | |
with: | |
go-version: 1.24.x | |
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 | |
with: | |
python-version: "3.x" | |
- name: install kustomize | |
run: make kustomize | |
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd | |
with: | |
extra_args: --show-diff-on-failure --from-ref ${{ | |
github.event.pull_request.base.sha }} --to-ref ${{ | |
github.event.pull_request.head.sha }} | |
env: | |
SKIP: go-mod-tidy,lint | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 | |
with: | |
go-version: 1.24.x | |
- name: set env vars | |
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
- name: test | |
if: runner.os == 'Linux' | |
run: make test | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 | |
with: | |
go-version: 1.24.x | |
- name: build | |
run: make build |