Add GitHub Actions integration for validation and tests (#1132)

This commit is contained in:
Evgeny Aleksandrov 2020-12-22 10:55:08 +03:00 committed by GitHub
parent 721a77b0f3
commit 38749b980e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 5 deletions

26
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
- name: Install dependencies
run: npm install
- name: Run validation
run: npm run validate
- name: Run tests
run: npm test

View file

@ -1,5 +0,0 @@
language: node_js
before_script: npm install
script: npm run validate && npm test