diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..746e29e --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/package.json b/package.json index 96ab282..87a21ad 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ }, "scripts": { "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": { "@actions/core": "^1.2.4",