Merge pull request #40 from polkadot-js/jg-gh-actions

Add GH actions
This commit is contained in:
Jaco Greeff 2019-10-04 09:20:46 +02:00 committed by GitHub
commit a54ac60d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

54
.github/workflows/nodejs.yml vendored Normal file
View File

@ -0,0 +1,54 @@
name: Node CI
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [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: lint
run: |
yarn install
yarn lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [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: test
run: |
yarn install
yarn test
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [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: build
run: |
yarn install
yarn build
env:
CI: true