Skip to content

Commit f586e24

Browse files
committed
feat: add action
1 parent 348824d commit f586e24

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Pull requests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
all-pr-checks:
8+
runs-on: ubuntu-latest
9+
needs: build-and-test
10+
steps:
11+
- run: echo "Done"
12+
13+
build-and-test:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node:
19+
- "current"
20+
- "lts/*"
21+
22+
name: Build & Test on Node ${{ matrix.node }}
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Install NPM Dependencies
28+
uses: ./.github/workflows/actions/install-npm-dependencies
29+
with:
30+
version: ${{ matrix.node }}
31+
32+
- name: Build
33+
run: pnpm build
34+
- name: Unit Tests
35+
run: pnpm test:unit

0 commit comments

Comments
 (0)