Skip to content

Commit f21ffe2

Browse files
committed
adding visibility to tests on GitHub
1 parent 6a48ee0 commit f21ffe2

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/pr-checks.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ on:
1212
- 'docs/**'
1313

1414
jobs:
15-
validate:
15+
test:
16+
name: Test
1617
runs-on: ubuntu-latest
1718
steps:
1819
- uses: actions/checkout@v4
@@ -31,10 +32,28 @@ jobs:
3132
run: npm ci
3233

3334
- name: Run tests
34-
id: test
3535
working-directory: ./package
3636
run: npm test
3737

38+
validate:
39+
needs: test
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v4
43+
with:
44+
ref: ${{ github.head_ref }}
45+
46+
- name: Setup Node.js
47+
uses: actions/setup-node@v4
48+
with:
49+
node-version: '20.x'
50+
cache: 'npm'
51+
cache-dependency-path: 'package/package-lock.json'
52+
53+
- name: Install dependencies
54+
working-directory: ./package
55+
run: npm ci
56+
3857
- name: Format code
3958
id: format
4059
working-directory: ./package

0 commit comments

Comments
 (0)