Skip to content

Commit

Permalink
ci(github-actions): lint and test (chimurai#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
chimurai authored and sarumont committed Jan 12, 2021
1 parent 21d2f96 commit 9bbc40c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Coveralls
jobs:

build:
name: Build
name: coveralls/build
runs-on: ubuntu-latest
steps:

Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Lint

on: ["push","pull_request"]

jobs:
build:
name: Lint

runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn lint
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test

on: ["push","pull_request"]

jobs:
build:
name: Test with Node.js ${{ matrix.node-version }}

runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn test

0 comments on commit 9bbc40c

Please sign in to comment.