Skip to content

doc

doc #38

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
test:
# ubuntu 18.04 comes with lein + java8 installed
runs-on: ubuntu-18.04
steps:
- name: Git checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Java 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Run Tests
run:
lein kaocha
cljs-test:
runs-on: ubuntu-18.04
steps:
- name: Git checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Java 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Run CLJS Tests
run: |
yarn
yarn ci-build
yarn ci-test
docs:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-18.04
steps:
- name: Store gh token
run: |
cat >~/.netrc<<EOF
machine github.com
login lucywang000
password ${{ secrets.GITHUB_TOKEN }}
EOF
- name: Git checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: 'true'
- name: Deploy to GitHub Pages
run:
./scripts/publish_docs.sh
clojars:
if: contains(github.ref, 'refs/tags')
runs-on: ubuntu-18.04
needs: [test, cljs-test]
steps:
- name: Git checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Java 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Deploy to clojars
env:
CLOJARS_USER: ${{ secrets.CLOJARS_USER }}
CLOJARS_TOKEN: ${{ secrets.CLOJARS_TOKEN }}
run:
lein deploy clojars