Skip to content

Commit

Permalink
Run bouncer in CI (#6)
Browse files Browse the repository at this point in the history
* Run bouncer in CI

* Add caching

* Clean up triggers
  • Loading branch information
nnichols authored Sep 20, 2024
1 parent cf1266c commit fb27402
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Linter
on: [pull_request, workflow_dispatch]

on: ["push", "workflow_dispatch", "pull_request"]

jobs:
spell-check:
Expand Down Expand Up @@ -48,8 +49,42 @@ jobs:
with:
ref: ${{ github.head_ref }}

- name: Cache maven dependencies
uses: actions/cache@v4
env:
cache-name: cache-maven
with:
path: ~/.m2
save-always: true
key: ${{ runner.os }}-clj-lint-sealog-${{ hashFiles('**/project.clj') }}
restore-keys: |
${{ runner.os }}-clj
- name: Validate Sealog Entries
run: lein sealog check

bouncer:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4.1.7
with:
ref: ${{ github.head_ref }}

- name: Cache maven dependencies
uses: actions/cache@v4
env:
cache-name: cache-maven
with:
path: ~/.m2
save-always: true
key: ${{ runner.os }}-clj-lint-bouncer-${{ hashFiles('**/project.clj') }}
restore-keys: |
${{ runner.os }}-clj
- name: Validate Sealog Entries
run: lein bouncer check

# This file was automatically copied and populated by rebroadcast
# Do not edit this file directly, instead modify the source at https://github.com/Wall-Brew-Co/rebroadcast/blob/master/sources/github-actions/workflows/lint.yml
1 change: 1 addition & 0 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
[metosin/spec-tools "0.10.7"]]
:plugins [[com.github.clj-kondo/lein-clj-kondo "2024.08.29"]
[com.wallbrew/lein-sealog "1.6.0"]
[com.wallbrew/bouncer "1.0.0"]
[lein-cljsbuild "1.1.8"]
[mvxcvi/cljstyle "0.16.630"]
[ns-sort "1.0.3"]]
Expand Down

0 comments on commit fb27402

Please sign in to comment.