Merge pull request #41 from clj-commons/support-js-dates-in-datetime #35
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Java | |
uses: actions/[email protected] | |
with: | |
java-version: '11' | |
distribution: 'corretto' | |
- name: Install clojure tools | |
uses: DeLaGuardo/[email protected] | |
with: | |
cli: 1.11.1.1165 | |
- name: Cache clojure dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
~/.gitlibs | |
~/.deps.clj | |
# List all files containing dependencies: | |
key: cljdeps-${{ hashFiles('deps.edn') }} | |
- name: Linter | |
run: clojure -M:clj-kondo --lint src | |
- name: Install karma | |
run: npm install -g karma karma-cljs-test karma-chrome-launcher karma-firefox-launcher | |
- name: Run JVM tests | |
run: clojure -X:test | |
- name: Run ClojureScript tests (Chrome) | |
run: clojure -Mcljs-test -x chrome-headless | |
- name: Run ClojureScript tests (Firefox) | |
run: clojure -Mcljs-test -x firefox-headless | |