Skip to content

Commit

Permalink
build: add node ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lgou2w committed May 20, 2021
1 parent 2f3e201 commit 7ae5e8a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Node.js CI

on:
push:
branches: [ master ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2

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

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
run_install: true

- name: ESLint check
run: pnpm lint

- name: Build
run: pnpm build

0 comments on commit 7ae5e8a

Please sign in to comment.