Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Commit 70e79cb

Browse files
committed
Add build and test GitHub action triggered on push
1 parent d603e1a commit 70e79cb

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/push.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build and test
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [8.x, 10.x, 12.x]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- run: npm install
20+
- run: npm run build --if-present
21+
- run: npm test
22+
env:
23+
CI: true

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"private": false,
1919
"scripts": {
2020
"build": "tsc",
21+
"test": "echo TODO",
2122
"clean": "rm -rf dist",
2223
"preversion": "yarn build",
2324
"postversion": "git push --tags && yarn publish"

0 commit comments

Comments
 (0)