mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Setup GitHub action for running tests (#39)
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
name: Node CI
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
timeout-minutes: 20
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Use Node.js 12
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 12.x
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: yarn test
|
||||||
+2
-1
@@ -13,7 +13,8 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "parcel build ./src/index.ts --no-source-maps --target=node --bundle-node-modules",
|
"build": "parcel build ./src/index.ts --no-source-maps --target=node --bundle-node-modules",
|
||||||
"test:watch": "jest --watch"
|
"test": "jest",
|
||||||
|
"test:watch": "yarn test --watch"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.2.4",
|
"@actions/core": "^1.2.4",
|
||||||
|
|||||||
Reference in New Issue
Block a user