Skip to content

Commit

Permalink
ci(actions): introduce GitHub Actions (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous authored Sep 9, 2019
1 parent 6c03057 commit 02a261d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Node CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, lint and test
run: |
npm ci
npm run prettier:check
npm run lint
npm test
npm run release:dry-run
env:
CI: true
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
"always",
[
"",
"actions",
"api",
"commitlint",
"coverage",
Expand Down

0 comments on commit 02a261d

Please sign in to comment.