use milliseconds from start for wavetracker #454
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: Continuous Deployment | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache deps.edn dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: clj-${{ runner.os }}-${{ hashFiles('**/deps.edn') }} | |
restore-keys: clj-${{ runner.os }}- | |
- name: Setup Java 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: Setup Clojure | |
uses: DeLaGuardo/setup-clojure@11.0 | |
with: | |
cli: latest | |
bb: latest | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: bin/lint | |
- name: Test | |
run: bin/kaocha unit-cljc | |
publish: | |
name: Publish | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache deps.edn dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: clj-${{ runner.os }}-${{ hashFiles('**/deps.edn') }} | |
restore-keys: clj-${{ runner.os }}- | |
- name: Setup Java 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: Setup Clojure | |
uses: DeLaGuardo/setup-clojure@11.0 | |
with: | |
cli: latest | |
bb: latest | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm ci | |
- name: Setup Pages | |
uses: actions/configure-pages@v2 | |
- name: Build | |
run: bb build | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: 'static-site' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |