Skip to content

Commit facb96f

Browse files
Merge pull request #296 from ChristianMurphy/replace-travis-with-github-actions
replace travis ci with github actions
2 parents e46000d + 5c3b842 commit facb96f

2 files changed

Lines changed: 35 additions & 23 deletions

File tree

.github/workflows/CI.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
jobs:
8+
build-and-test:
9+
name: '${{ matrix.platform }}: node.js ${{ matrix.node-version }}'
10+
strategy:
11+
matrix:
12+
platform: [ubuntu-latest, windows-2019, macos-latest]
13+
node-version: [14]
14+
runs-on: ${{ matrix.platform }}
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- name: Install
25+
run: npm ci
26+
- name: Bootstrap
27+
run: npm run bootstrap
28+
- name: Lint
29+
run: npm run lint
30+
- name: Test
31+
run: npm run test
32+
- name: Build
33+
run: npx lerna run build
34+
- name: Check Commit Message
35+
run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)