less amplitude modulation #992
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: | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Cache deps.edn dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: clj-${{ runner.os }}-${{ hashFiles('**/deps.edn') }} | |
restore-keys: clj-${{ runner.os }}- | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Setup Clojure | |
uses: DeLaGuardo/[email protected] | |
with: | |
cli: latest | |
bb: latest | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: bin/lint | |
- name: Test | |
run: bin/kaocha unit-cljc | |
build: | |
name: Build | |
needs: test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Cache deps.edn dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: clj-${{ runner.os }}-${{ hashFiles('**/deps.edn') }} | |
restore-keys: clj-${{ runner.os }}- | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Setup Clojure | |
uses: DeLaGuardo/[email protected] | |
with: | |
cli: latest | |
bb: latest | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: bb build | |
- name: Upload artifact | |
id: deployment | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'static-site' | |
publish: | |
name: Publish | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Configure Pages | |
uses: actions/configure-pages@v5 | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |