Skip to content

Commit

Permalink
feat(v1): [#2] set up lint, build, and test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alvyn279 committed Dec 16, 2020
1 parent 65428b9 commit 92ed3fc
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
lint_build_test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 12.x ]

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm i

- name: Run linter
run: npm run lint

- name: Build lib
run: npm run build

- name: Run unit tests
run: npm test

0 comments on commit 92ed3fc

Please sign in to comment.