Skip to content

Commit c09b64b

Browse files
committed
Add "lint mixins" workflow
1 parent 3805ed5 commit c09b64b

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/lint-mixins.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: "Lint Mixins"
3+
4+
permissions:
5+
contents: read
6+
7+
on:
8+
# To conserve resources we only run tests against main in PRs
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
check-for-changed-mixins:
15+
name: Check for changed mixins
16+
runs-on: ubuntu-latest
17+
outputs:
18+
changed-mixins: ${{ steps.changed-mixins.outputs.all_changed_files }}
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Setup Go
26+
uses: actions/setup-go@v5
27+
with:
28+
go-version: 1.18
29+
30+
- name: Install CI dependencies
31+
run: make install-ci-deps
32+
33+
- name: Get changed mixins
34+
id: changed-mixins
35+
uses: tj-actions/changed-files@v44
36+
with:
37+
dir_names: true
38+
dir_names_exclude_current_dir: true
39+
dir_names_max_depth: 1
40+
files: **-mixin/
41+
matrix: true
42+
43+
- name: List all changed mixins:
44+
run: echo '${{ steps.changed-mixins.outputs.all_changed_files }}'

0 commit comments

Comments
 (0)