Add yarn install action #59
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: Clojure CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "21" | |
- name: Setup Clojure | |
uses: DeLaGuardo/setup-clojure@3.4 | |
with: | |
cli: 1.10.1.693 | |
- name: Build Project | |
run: clojure -A:fig/simple | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeLaGuardo/clojure-lint-action@master | |
continue-on-error: true | |
with: | |
clj-kondo-args: --lint src | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "21" | |
- name: Setup Clojure | |
uses: DeLaGuardo/setup-clojure@3.4 | |
with: | |
cli: 1.10.1.693 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
cache: "yarn" | |
- name: Run install | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: install | |
- name: Build Project | |
run: yarn build | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@releases/v4 | |
with: | |
folder: resources/public # The folder the action should deploy. |