Skip to content

Commit

Permalink
Run go-makefile-maker
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Jul 14, 2023
1 parent a9008db commit ca824f3
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 83 deletions.
3 changes: 2 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
],
"assignees": [
"talal",
"majewsky"
"majewsky",
"SuperSandro2000"
],
"commitMessageAction": "Renovate: Update",
"constraints": {
Expand Down
28 changes: 21 additions & 7 deletions .github/workflows/license.yaml → .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,20 @@
# Edit Makefile.maker.yaml instead. #
################################################################################

name: License
name: Checks
"on":
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
branches:
- '*'
paths-ignore:
- '**.md'
permissions:
checks: write
contents: read
jobs:
addlicense:
name: Check
checks:
name: Checks
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand All @@ -28,6 +25,23 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Dependency Review
uses: actions/dependency-review-action@v3
with:
base-ref: ${{ github.event.pull_request.base.sha || 'main' }}
deny-licenses: AGPL-1.0, AGPL-3.0, GPL-1.0, GPL-2.0, GPL-3.0, LGPL-2.0, LGPL-2.1, LGPL-3.0
fail-on-severity: moderate
head-ref: ${{ github.event.pull_request.head.sha || github.ref }}
- name: Run govulncheck
uses: golang/govulncheck-action@v1
- name: Check for spelling errors
uses: reviewdog/action-misspell@v1
with:
exclude: ./vendor/*
fail_on_error: true
github_token: ${{ secrets.GITHUB_TOKEN }}
ignore: importas
reporter: github-check
- name: Check if source code files have license header
run: |
shopt -s globstar
Expand Down
20 changes: 4 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ name: CI
permissions:
contents: read
jobs:
build:
name: Build
needs:
- lint
buildAndLint:
name: Build & Lint
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand All @@ -30,26 +28,16 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Make build
- name: Build all binaries
run: make build-all
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
test:
name: Test
needs:
- build
- buildAndLint
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/dependency-review.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/spell.yaml

This file was deleted.

5 changes: 2 additions & 3 deletions Makefile.maker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ golangciLint:
createConfig: true

githubWorkflow:
global:
ignorePaths: ["**.md"] # all Markdown files
ci:
enabled: true
ignorePaths: ["**.md"] # all Markdown files
kubernetesEnvtest:
enabled: true
securityChecks:
Expand All @@ -33,13 +32,13 @@ githubWorkflow:
enabled: true
spellCheck:
enabled: true
ignorePaths: [] # override global setting so that nothing is ignored

renovate:
enabled: true
assignees:
- talal
- majewsky
- SuperSandro2000
packageRules:
- matchPackageNames: ["sigs.k8s.io/controller-runtime"]
matchUpdateTypes: ["major"]
Expand Down

0 comments on commit ca824f3

Please sign in to comment.