Skip to content

Commit

Permalink
Add lint mixin job
Browse files Browse the repository at this point in the history
  • Loading branch information
Dasomeone committed Oct 22, 2024
1 parent 0f8bc5f commit 914d5df
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/lint-mixins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,41 @@ jobs:

- name: List all changed mixins
run: echo '${{ steps.changed-mixins.outputs.all_changed_files }}'

lint-mixin:
name: Lint Mixin
runs-on: ubuntu-latest
permissions:
issues: write
contents: write
pull-requests: write
repository-projects: write
timeout-minutes: 15
needs: [check-for-changed-mixins]
strategy:
matrix:
mixin: ${{ fromJSON(needs.check-for-changed-mixins.outputs.changed-mixins) }}
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.18

- name: Install CI dependencies
run: make install-ci-deps

- name: Install Mixin dependencies
working-directory: ./${{ matrix.mixin }}
run: jb install

- name: Lint Mixin
working-directory: ./${{ matrix.mixin }}
run: mixtool lint mixin.libsonnet


0 comments on commit 914d5df

Please sign in to comment.