Skip to content

Merge pull request #47 from hoplon/update-build-alias-dependencies #3

Merge pull request #47 from hoplon/update-build-alias-dependencies

Merge pull request #47 from hoplon/update-build-alias-dependencies #3

name: Develop & Snapshot
on:
push:
branches:
- "master"
jobs:
build-and-snapshot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@master
with:
cli: '1.11.1.1208'
- name: Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Cache All The Things
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.npm
~/.gitlibs
~/.clojure
~/.cpcache
key: cljdeps-${{ hashFiles('deps.edn', 'package.json') }}
- name: Install node dependencies
run: npm install
- name: Install karma cli globally
run: npm install -g karma-cli
- name: Run Tests
run: clojure -T:build ci :snapshot true
- name: Deploy Snapshot
run: clojure -T:build deploy :snapshot true
env:
CLOJARS_PASSWORD: ${{secrets.DEPLOY_TOKEN}}
CLOJARS_USERNAME: ${{secrets.DEPLOY_USERNAME}}