Skip to content

Commit

Permalink
added lint and test actions
Browse files Browse the repository at this point in the history
  • Loading branch information
iSkore committed Sep 9, 2020
1 parent 1da51b3 commit d421803
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'LightMap lint'

on:
push:
tags-ignore:
- '**'

env:
CI: true

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci --silent
- run: npm run lint
15 changes: 2 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: '@mi-sec/ip action'
name: 'LightMap tests'

on:
push:
Expand All @@ -9,17 +9,6 @@ env:
CI: true

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci --silent --prefix packages/ip/
- run: npm run --prefix packages/ip/ lint

test:
runs-on: ubuntu-latest
strategy:
Expand All @@ -39,4 +28,4 @@ jobs:
- name: codecov
uses: codecov/codecov-action@v1
with:
file: packages/ip/coverage/lcov.info
file: coverage/lcov.info

0 comments on commit d421803

Please sign in to comment.