-
Notifications
You must be signed in to change notification settings - Fork 30
38 lines (34 loc) · 813 Bytes
/
Copy pathnode.js.yml
File metadata and controls
38 lines (34 loc) · 813 Bytes
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
37
38
name: Node.js CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
permissions:
contents: read
checks: write
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/nextjs-cache-handler
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: npm run build --if-present
- run: npm test
- name: Unit Test Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Unit Test Report
path: packages/nextjs-cache-handler/test-results/junit.xml
reporter: jest-junit