Skip to content

Commit

Permalink
Merge pull request #1 from iamresp/chore/actions-workflow
Browse files Browse the repository at this point in the history
chore(ci): add actions workflow
  • Loading branch information
iamresp committed Feb 27, 2022
2 parents e706f1a + 11fc70d commit 9c6ef1c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Node.js CI

on:
push:
branches: [develop]
pull_request:
branches: [develop]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install deps
run: yarn install --frozen-lockfile
- name: Lint code
run: yarn tsc && yarn lint:ci
- name: Test
run: yarn test
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"build:cjs": "cross-env BABEL_ENV=commonjs babel --out-dir lib/cjs src --ignore src/types.ts --extensions .ts",
"build:types": "tsc",
"test": "jest",
"test:ci": "eslint test --ext .ts --fix-dry-run && jest",
"lint": "eslint src --ext .ts --fix-dry-run",
"lint:ci": "eslint . --ext .ts --fix-dry-run",
"tsc": "tsc --noEmit --emitDeclarationOnly false"
},
"files": [
Expand Down

0 comments on commit 9c6ef1c

Please sign in to comment.