Replace Travis CI with GitHub action (#1772)

This commit is contained in:
Jay Linski
2021-12-03 19:04:01 +01:00
committed by GitHub
parent fd93073146
commit 8eefee56ff
10 changed files with 13623 additions and 123 deletions
+54
View File
@@ -0,0 +1,54 @@
name: CI
on:
push:
branches:
- master
pull_request: {}
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: Lint (ESlint)
run: npm run lint
- name: Lint (Prettier)
run: npm run check-format
- name: Lint (TypeScript)
run: npm run dtslint
test:
name: Test
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: ['ubuntu-latest']
# https://nodejs.org/en/about/releases/
node-version: ['12', '14', '16', '17']
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Test
run: npm run test