Skip to content

Commit 25d4aab

Browse files
author
Serhii Khoma
committed
fix: ci
1 parent 334987a commit 25d4aab

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,30 @@ jobs:
2727
.spago
2828
output
2929
30+
- name: Setup node and npm
31+
uses: actions/setup-node@v4
32+
33+
- name: Cache NPM dependencies
34+
uses: actions/cache@v4
35+
env:
36+
cache-name: cache-node-modules
37+
with:
38+
path: ~/.npm
39+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/package.json') }}
40+
restore-keys: |
41+
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}-
42+
${{ runner.os }}-build-${{ env.cache-name }}-
43+
${{ runner.os }}-build-
44+
${{ runner.os }}-
45+
46+
- name: Install NPM dependencies
47+
run: npm install
48+
3049
- name: Build source
3150
run: spago build --censor-stats --strict --ensure-ranges --pedantic-packages
3251

3352
- name: Run tests
34-
run: spago test --offline --censor-stats --strict --pedantic-packages -- --censor-codes=UserDefinedWarning
53+
run: spago test --offline --censor-stats --strict --pedantic-packages
3554

3655
- name: Verify formatting
3756
run: purs-tidy check src test

0 commit comments

Comments
 (0)