Skip to content

Merge pull request #114 from DeLaGuardo/clj-msi #360

Merge pull request #114 from DeLaGuardo/clj-msi

Merge pull request #114 from DeLaGuardo/clj-msi #360

Workflow file for this run

name: Tests
on: [push]
jobs:
run:
name: Run
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macOS-latest]
steps:
- name: Checkout
uses: actions/checkout@main
- name: Set Node.js 20.x
uses: actions/setup-node@master
with:
version: 20.x
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '21'
- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v3
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: npm install
run: npm install
- name: npm test
run: npm run test