Skip to content

Commit 50b380f

Browse files
committed
ci: add testing step to github actions
1 parent e59fa5a commit 50b380f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/github-actions.yaml renamed to .github/workflows/build-and-release.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: build and release ng-snippets library
2+
23
on:
34
push:
45
branches:
@@ -9,15 +10,22 @@ jobs:
910
steps:
1011
- name: Check out repository code
1112
uses: actions/checkout@v3
13+
1214
- name: Set up your GitHub Actions workflow with a specific version of NodeJS
1315
uses: actions/setup-node@v3
1416
with:
1517
node-version: 14
1618
cache: npm
19+
1720
- name: Install dependencies
1821
run: npm ci
19-
- name: Build
22+
23+
- name: Run tests
24+
run: npm run test:lib
25+
26+
- name: Build library
2027
run: npm run build:lib
28+
2129
- name: Semantic release
2230
run: npm run semantic-release
2331
env:

0 commit comments

Comments
 (0)