Fix styles in demos (#48) #339
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 | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: π§ Install java | |
uses: actions/setup-java@v1 | |
with: | |
java-version: '11.0.7' | |
- name: π§ Install clojure | |
uses: DeLaGuardo/[email protected] | |
with: | |
cli: '1.10.3.943' | |
- name: π Checkout | |
uses: actions/checkout@v2 | |
- name: π§Ά Yarn Install | |
run: yarn install | |
- name: π§ͺ Run CLJS tests | |
run: yarn test | |
- name: π§ͺ Run squint tests | |
run: | | |
yarn squint compile | |
node dist/nextjournal/clojure_mode_tests.mjs | |
snapshot: | |
name: Static App / Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v2 | |
- name: π Google Auth | |
uses: google-github-actions/auth@v0 | |
with: | |
credentials_json: ${{ secrets.GCLOUD_SERVICE_KEY }} | |
- name: π§ Setup Google Cloud SDK | |
uses: google-github-actions/[email protected] | |
- name: π§ Install java | |
uses: actions/setup-java@v1 | |
with: | |
java-version: '11.0.7' | |
- name: π§ Install clojure | |
uses: DeLaGuardo/setup-clojure@master | |
with: | |
cli: '1.10.3.943' | |
- name: π§Ά Yarn Install | |
run: yarn install | |
- name: π§Ά Yarn Build | |
run: | | |
yarn build | |
- name: π§Ά Squint Build | |
run: | | |
yarn squint compile | |
yarn vite:build | |
- name: π Copy static build to bucket under SHA | |
run: gsutil cp -r public gs://nextjournal-snapshots/clojure-mode/build/${{ github.sha }} | |
- name: π Copy static build to GitHub Pages | |
if: ${{ github.ref == 'refs/heads/main' }} | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: public # The folder the action should deploy. | |
- name: β Add link to Clojure Mode Demo | |
uses: Sibz/github-status-action@v1 | |
with: | |
authToken: ${{secrets.GITHUB_TOKEN}} | |
context: 'CI / Static App / Clojure Mode' | |
description: 'Ready' | |
state: 'success' | |
sha: ${{github.event.pull_request.head.sha || github.sha}} | |
target_url: https://snapshots.nextjournal.com/clojure-mode/build/${{ github.sha }} | |
- name: β Add link to Clojure Mode Demo | |
uses: Sibz/github-status-action@v1 | |
with: | |
authToken: ${{secrets.GITHUB_TOKEN}} | |
context: 'CI / Static App / Squint Build' | |
description: 'Ready' | |
state: 'success' | |
sha: ${{github.event.pull_request.head.sha || github.sha}} | |
target_url: https://snapshots.nextjournal.com/clojure-mode/build/${{ github.sha }}/squint/dist/ | |
- name: β Add link to LiveDoc Demo | |
uses: Sibz/github-status-action@v1 | |
with: | |
authToken: ${{secrets.GITHUB_TOKEN}} | |
context: 'CI / Static App / LiveDoc' | |
description: 'Ready' | |
state: 'success' | |
sha: ${{github.event.pull_request.head.sha || github.sha}} | |
target_url: https://snapshots.nextjournal.com/clojure-mode/build/${{ github.sha }}/livedoc |