forked from mikesol/purescript-deku
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 904 Bytes
/
unit-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Unit test
on: push
jobs:
container-job:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.npm
.spago
${{ env.spago_global_cache }}
output
key: >-
${{ hashFiles('pnpm-lock.yaml') }}-
${{ hashFiles('spago.yaml') }}
- uses: pnpm/action-setup@v2.2.4
name: Install pnpm
id: pnpm-install
with:
version: 7.13.2
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Install
run: pnpm i
- name: Test
run: pnpm t