Skip to content

Commit b86a7f7

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

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/lint-mixins.yml

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

0 commit comments

Comments
 (0)