Skip to content

Commit 4afd75e

Browse files
committed
Merge branch 'main' into version-upgrade
2 parents ea8e3a1 + db1d4b1 commit 4afd75e

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/filters.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Any file that is not a doc *.md file
2+
src:
3+
- "!**/**.md"
4+
sanity:
5+
- "**/**.go"
6+
- "go.mod"
7+
- "go.sum"

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,29 @@ on:
99
- "*"
1010

1111
jobs:
12+
changes:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
paths: ${{ steps.filter.outputs.changes }}
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Harden Runner
19+
uses: step-security/harden-runner@v2
20+
with:
21+
disable-sudo: true
22+
egress-policy: block
23+
allowed-endpoints: >
24+
api.github.com:443
25+
github.com:443
26+
- uses: dorny/paths-filter@v3
27+
id: filter
28+
with:
29+
base: ${{ github.ref }}
30+
filters: .github/filters.yml
1231
ci:
1332
runs-on: ubuntu-latest
33+
needs: changes
34+
if: ${{ contains(fromJSON(needs.changes.outputs.paths), 'src') }}
1435
steps:
1536
- name: Install cryptsetup
1637
run: |
@@ -38,6 +59,8 @@ jobs:
3859
slug: linode/linode-blockstorage-csi-driver
3960
e2e-tests:
4061
runs-on: ubuntu-latest
62+
needs: changes
63+
if: ${{ contains(fromJSON(needs.changes.outputs.paths), 'src') }}
4164
env:
4265
GITHUB_TOKEN: ${{ secrets.github_token }}
4366
LINODE_TOKEN: ${{ secrets.LINODE_TOKEN }}
@@ -76,6 +99,7 @@ jobs:
7699
run: devbox run e2e-test
77100

78101
- name: Run CSI-Sanity Tests
102+
if: ${{ contains(fromJSON(needs.changes.outputs.paths), 'sanity') }}
79103
run: devbox run csi-sanity-test
80104

81105
- name: run upstream E2E Tests

0 commit comments

Comments
 (0)