Implement pure CLJC Sqids and prepare 1.1.0 #121
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Clojure CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| merge_group: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| name: Check out repository | |
| - uses: actions/setup-node@v4 | |
| name: Set up Node | |
| with: | |
| node-version: lts/* | |
| cache: npm | |
| - uses: actions/setup-java@v4 | |
| name: Set up Java | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - uses: actions/setup-python@v4 | |
| name: Set up Python | |
| with: | |
| python-version: 3.12 | |
| cache: pip | |
| - uses: actions/cache@v3 | |
| name: pre-commit cache | |
| with: | |
| path: ~/.cache/pre-commit | |
| key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} | |
| - uses: actions/cache@v3 | |
| name: Clojure cache | |
| with: | |
| path: | | |
| ~/.m2/repository | |
| ~/.gitlibs | |
| ~/.clojure | |
| ~/.cpcache | |
| key: ${{ runner.os }}-clojure-${{ hashFiles('deps.edn') }} | |
| - name: Install Clojure tools | |
| uses: DeLaGuardo/setup-clojure@13 | |
| with: | |
| cli: latest | |
| bb: latest | |
| clj-kondo: 2026.01.19 | |
| cljstyle: 0.15.0 | |
| - name: Run pre-commit hooks | |
| run: | | |
| pip install -r requirements.txt | |
| SKIP=kaocha-test pre-commit run --all-files | |
| - name: Run tests | |
| run: | | |
| npm install | |
| bin/kaocha | |
| - name: Upload coverage artifact | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: target/coverage | |
| if-no-files-found: warn | |
| - name: Upload JUnit XML artifact | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: junit-xml | |
| path: target/test-results/junit.xml | |
| if-no-files-found: warn |