Add GitHub workflow

This commit is contained in:
Rafael Bardini 2020-07-05 15:17:34 +02:00
parent c94e5ac315
commit 6d00bdae2b
2 changed files with 25 additions and 1 deletions

24
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Main
on: push
jobs:
test-and-release:
name: Test and release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm test

View File

@ -1,4 +1,4 @@
{ {
"*.js": ["eslint --fix", "prettier --write"], "*.js": ["eslint --fix", "prettier --write"],
"*.{css,json,md}": "prettier --write" "*.{css,json,md,yml": "prettier --write"
} }