| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- name: logseq/common CI
- on:
- # Path filters ensure jobs only kick off if a change is made to common
- push:
- branches: [master]
- paths:
- - 'deps/common/**'
- - '.github/workflows/logseq-common.yml'
- - '!deps/common/**.md'
- pull_request:
- branches: [master]
- paths:
- - 'deps/common/**'
- - '.github/workflows/logseq-common.yml'
- - '!deps/common/**.md'
- defaults:
- run:
- working-directory: deps/common
- env:
- CLOJURE_VERSION: '1.10.1.763'
- JAVA_VERSION: '11'
- # This is the latest node version we can run.
- NODE_VERSION: '18'
- BABASHKA_VERSION: '1.0.168'
- jobs:
- test:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v3
- - name: Set up Java
- uses: actions/setup-java@v3
- with:
- distribution: 'zulu'
- java-version: ${{ env.JAVA_VERSION }}
- - name: Set up Clojure
- uses: DeLaGuardo/[email protected]
- with:
- cli: ${{ env.CLOJURE_VERSION }}
- bb: ${{ env.BABASHKA_VERSION }}
- - name: Run clj-kondo lint
- run: clojure -M:clj-kondo --parallel --lint src test
- - name: Clojure cache
- uses: actions/cache@v3
- id: clojure-deps
- with:
- path: |
- ~/.m2/repository
- ~/.gitlibs
- key: ${{ runner.os }}-clojure-deps-${{ hashFiles('deps.edn') }}
- restore-keys: ${{ runner.os }}-clojure-deps-
- - name: Fetch Clojure deps
- if: steps.clojure-deps.outputs.cache-hit != 'true'
- run: clojure -A:test -P
- - name: Run ClojureScript tests
- run: clojure -M:test
|