Skip to content

Commit

Permalink
ci: use autofix.ci (#3490)
Browse files Browse the repository at this point in the history
* style: nllint -s -f

* ci: use autofix.ci

* test

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
suzuki-shunsuke and autofix-ci[bot] authored Jan 31, 2025
1 parent ffefa67 commit b2b940a
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 81 deletions.
1 change: 0 additions & 1 deletion .github/DISCUSSION_TEMPLATE/deprecated-proposal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ body:
label: .
options:
- label: ..

Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ body:
label: .
options:
- label: ..

13 changes: 13 additions & 0 deletions .github/workflows/autofix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: autofix.ci
on: pull_request
permissions: {}
jobs:
autofix:
runs-on: ubuntu-24.04
permissions: {}
timeout-minutes: 15
steps:
- uses: suzuki-shunsuke/go-autofix-action@a445a23ce325c9f6411da2d8a6885e1eaeddf938 # v0.1.2
with:
aqua_version: v2.43.0
36 changes: 0 additions & 36 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ jobs:
# Get changed files to filter jobs
timeout-minutes: 30
outputs:
update-aqua-checksums: ${{steps.changes.outputs.update-aqua-checksums}}
renovate-config-validator: ${{steps.changes.outputs.renovate-config-validator}}
ghalint: ${{steps.changes.outputs.ghalint}}
go-mod-tidy: ${{steps.changes.outputs.go-mod-tidy}}
test-docker: ${{steps.changes.outputs.test-docker}}
test-docker-prebuilt: ${{steps.changes.outputs.test-docker-prebuilt}}
runs-on: ubuntu-latest
Expand All @@ -23,12 +21,6 @@ jobs:
id: changes
with:
filters: |
update-aqua-checksums:
- aqua/aqua.yaml
- aqua/imports/*.yaml
- aqua/aqua-checksums.json
- .github/workflows/test.yaml
- .github/workflows/wc-update-aqua-checksums.yaml
renovate-config-validator:
- renovate.json5
- .github/workflows/test.yaml
Expand All @@ -38,12 +30,6 @@ jobs:
- aqua/aqua.yaml
- aqua/imports/ghalint.yaml
- ghalint.yaml
go-mod-tidy:
- go.mod
- go.sum
- "**.go"
- .github/workflows/test.yaml
- .github/workflows/wc-go-mod-tidy.yaml
test-docker:
- Dockerfile
- .github/workflows/wc-test.yaml
Expand All @@ -57,12 +43,10 @@ jobs:
if: failure()
needs:
- renovate-config-validator
- update-aqua-checksums
- ghalint
- test
- test-docker-prebuilt
- integration-test
- go-mod-tidy

renovate-config-validator:
uses: ./.github/workflows/wc-renovate-config-validator.yaml
Expand All @@ -71,16 +55,6 @@ jobs:
permissions:
contents: read

update-aqua-checksums:
needs: path-filter
if: needs.path-filter.outputs.update-aqua-checksums == 'true'
uses: ./.github/workflows/wc-update-aqua-checksums.yaml
permissions:
contents: read
secrets:
gh_app_id: ${{secrets.APP_ID}}
gh_app_private_key: ${{secrets.APP_PRIVATE_KEY}}

ghalint:
needs: path-filter
if: needs.path-filter.outputs.ghalint == 'true'
Expand All @@ -100,16 +74,6 @@ jobs:
if: needs.path-filter.outputs.test-docker-prebuilt == 'true'
permissions: {}

go-mod-tidy:
uses: ./.github/workflows/wc-go-mod-tidy.yaml
needs: path-filter
if: needs.path-filter.outputs.go-mod-tidy == 'true'
secrets:
gh_app_id: ${{secrets.APP_ID}}
gh_app_private_key: ${{secrets.APP_PRIVATE_KEY}}
permissions:
contents: read

integration-test:
uses: ./.github/workflows/wc-integration-test.yaml
permissions: {}
20 changes: 0 additions & 20 deletions .github/workflows/wc-go-mod-tidy.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/wc-update-aqua-checksums.yaml

This file was deleted.

Binary file modified logo/aqua_horizontal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified logo/aqua_vertical.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified logo/aqua_without_text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions pkg/controller/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b2b940a

Please sign in to comment.