Skip to content

Commit

Permalink
* add CLJS test CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Sep 28, 2024
1 parent 1870009 commit 264fdc4
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/cljs_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: ClojureScript Test
on: [push]

jobs:
cljs-test:
name: ClojureScript Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- uses: DeLaGuardo/[email protected]
with:
tools-deps: '1.10.1.763'

- name: Cache maven
uses: actions/cache@v2
env:
cache-name: cache-maven
with:
path: ~/.m2
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Cache gitlibs
uses: actions/cache@v2
env:
cache-name: cache-gitlibs
with:
path: ~/.gitlibs
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Build tests
run: clojure -M:test:cljs-build

- name: Run tests
run: |
node target/test.js | tee test-out.txt
grep -qxF '0 failures, 0 errors.' test-out.txt

0 comments on commit 264fdc4

Please sign in to comment.