Skip to content

Commit

Permalink
Simplify verify action
Browse files Browse the repository at this point in the history
Also, run on all PRs even if only docs have changed.
The `verify` action is marked as required in branch protection rules.
  • Loading branch information
timebertt committed Jun 21, 2024
1 parent f87a5c8 commit 1b2a257
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,22 @@
name: verify

on:
pull_request:
paths-ignore:
- "**.md"
push:
branches:
- '*'
paths-ignore:
- "**.md"
pull_request:

jobs:
verify:
runs-on: ubuntu-latest

# update-codegen requires the workspace to be placed in GOPATH.
# Set up env var, working directory, and check out at the correct path in GOPATH.
env:
GOPATH: /home/runner/work/gardener-extension-shoot-flux/gardener-extension-acl/go
defaults:
run:
working-directory: go/src/github.com/stackitcloud/gardener-extension-acl

steps:
- uses: actions/checkout@v4
with:
path: go/src/github.com/stackitcloud/gardener-extension-acl
- uses: actions/setup-go@v4
with:
go-version-file: go/src/github.com/stackitcloud/gardener-extension-acl/go.mod
cache-dependency-path: go/src/github.com/stackitcloud/gardener-extension-acl/go.sum
go-version-file: go.mod
- name: Configure git
run: |
git config --global user.email "ci@gardener.cloud"
Expand Down

0 comments on commit 1b2a257

Please # to comment.