Skip to content

Commit ef5b6ea

Browse files
committed
👷 Add config for running tests with github actions
1 parent 21cacaf commit ef5b6ea

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/test.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Node.js CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: '14.x'
15+
16+
- name: Install dependencies & build packages
17+
run: yarn install --frozen-lockfile
18+
19+
- name: Run tests
20+
run: yarn test:ci

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"type-check:watch": "yarn type-check -- --watch",
1818
"test:root": "jest --watch",
1919
"test:packages": "lerna exec --scope=@ackee/antonio-core -- jest --watch",
20+
"test:ci": "lerna exec --scope=@ackee/antonio-core -- jest",
2021
"start": "yarn build && onchange 'packages/@ackee/*/src/**/*.ts' -- yarn release:yalc",
2122
"changelog": "gitmoji-changelog",
2223
"format": "prettier --config ./prettier.config.js --write 'packages/@ackee/*/src/**/*.ts' '*.{js,json}' --loglevel warn",

0 commit comments

Comments
 (0)