Skip to content

Merge pull request #13 from Cumulo/dependabot/npm_and_yarn/browserify… #25

Merge pull request #13 from Cumulo/dependabot/npm_and_yarn/browserify…

Merge pull request #13 from Cumulo/dependabot/npm_and_yarn/browserify… #25

Workflow file for this run

name: Test
on:
pull_request: {}
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker://timbru31/java-node:latest
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
name: Cache node modules of yarn
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Cache Clojars
uses: actions/cache@v1
env:
cache-name: cache-clojars
with:
path: ~/.m2/repository
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('shadow-cljs.edn') }}
restore-keys: |
${{ runner.os }}-clojars
- run: yarn
name: installing deps
- run: yarn shadow-cljs compile test && node target/test.js
name: Running test