File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ # Any file that is not a doc *.md file
2+ src :
3+ - " !**/**.md"
4+ sanity :
5+ - " **/**.go"
6+ - " go.mod"
7+ - " go.sum"
Original file line number Diff line number Diff line change 99 - " *"
1010
1111jobs :
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 : |
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 }}
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
You can’t perform that action at this time.
0 commit comments