Skip to content

Commit dd75f95

Browse files
authored
Update pipeline.yml
1 parent 0577076 commit dd75f95

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/pipeline.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
33

4-
name: Node.js CI
4+
name: React Playground CI - Node.js
55
on:
66
push:
77
branches: [ "main" ]
@@ -23,4 +23,10 @@ jobs:
2323
- name: Install Dependencies
2424
run: npm ci
2525
- name: Build
26-
run: npm run build --if-present
26+
run: npm run build --if-present
27+
test:
28+
needs: [build]
29+
runs-on: docker://alpine:latest
30+
steps:
31+
- name: Unit Tests
32+
run: npm test

0 commit comments

Comments
 (0)