mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Use github actions instead of travis
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
name: Lint
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
name: ESLint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Node v14
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 14
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install -g eslint@7 && eslint-config-amber eslint-plugin-json
|
||||||
|
|
||||||
|
- name: Run ESLint
|
||||||
|
run: npm test
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
sudo: false
|
|
||||||
language: node_js
|
|
||||||
node_js:
|
|
||||||
- '12'
|
|
||||||
install: npm i -g eslint && npm i eslint-config-amber eslint-plugin-json
|
|
||||||
Reference in New Issue
Block a user