File tree Expand file tree Collapse file tree 1 file changed +44
-5
lines changed
Expand file tree Collapse file tree 1 file changed +44
-5
lines changed Original file line number Diff line number Diff line change 11---
2- name : " Lint Mixins "
2+ name : Mixin
33
44permissions :
55 contents : read
88 # To conserve resources we only run tests against main in PRs
99 pull_request :
1010 branches :
11- - main
11+ - master
1212
1313jobs :
1414 check-for-changed-mixins :
15- name : Check for changed mixins
15+ name : Check for changes
1616 runs-on : ubuntu-latest
1717 outputs :
1818 changed-mixins : ${{ steps.changed-mixins.outputs.all_changed_files }}
3737 dir_names : true
3838 dir_names_exclude_current_dir : true
3939 dir_names_max_depth : 1
40- files : **-mixin/
40+ files : |
41+ **-mixin/
4142 matrix : true
4243
43- - name : List all changed mixins:
44+ - name : List all changed mixins
4445 run : echo '${{ steps.changed-mixins.outputs.all_changed_files }}'
46+
47+ lint-mixin :
48+ name : Run Mixtool
49+ runs-on : ubuntu-latest
50+ permissions :
51+ issues : write
52+ contents : write
53+ pull-requests : write
54+ repository-projects : write
55+ timeout-minutes : 15
56+ needs : [check-for-changed-mixins]
57+ strategy :
58+ matrix :
59+ mixin : ${{ fromJSON(needs.check-for-changed-mixins.outputs.changed-mixins) }}
60+ fail-fast : false
61+ steps :
62+ - name : Checkout
63+ uses : actions/checkout@v4
64+ with :
65+ fetch-depth : 0
66+
67+ - name : Setup Go
68+ uses : actions/setup-go@v5
69+ with :
70+ go-version : 1.18
71+
72+ - name : Install CI dependencies
73+ run : make install-ci-deps
74+
75+ - name : Install Mixin dependencies
76+ working-directory : ./${{ matrix.mixin }}
77+ run : jb install
78+
79+ - name : Lint Mixin
80+ working-directory : ./${{ matrix.mixin }}
81+ run : mixtool lint mixin.libsonnet
82+
83+
You can’t perform that action at this time.
0 commit comments