Skip to content

Commit 00e8607

Browse files
authored
Move CI to Github Actions (#147)
1 parent d4e2c20 commit 00e8607

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

.github/workflows/ci.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
Tests:
5+
runs-on: ${{ matrix.os }}
6+
strategy:
7+
matrix:
8+
node-version: [ '8', '10', '12', '14' ]
9+
os: [ubuntu-latest, windows-latest]
10+
name: Test on Node v${{ matrix.node-version }} on ${{ matrix.os }}
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup node
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- run: npm install
18+
- run: npm run all
19+
env:
20+
CI: true

.travis.yml

-9
This file was deleted.

test/loader.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ chai.use(sinonChai);
99
const { expect } = chai;
1010

1111
function d([str]) {
12-
return str.replace(/^\t+/gm, '').trim();
12+
return str.replace(/^\t+/gm, '').replace(/\r/g, '').trim();
1313
}
1414

1515
describe('loader', () => {
@@ -88,7 +88,7 @@ describe('loader', () => {
8888
) {
8989
expect(err).to.exist;
9090

91-
expect(err.message.trim()).to.eql(d`
91+
expect(err.message.trim().replace(/\r/g, '')).to.eql(d`
9292
ValidationError: A component cannot have a default export (2:1)
9393
1: <script>
9494
2: export default {};

0 commit comments

Comments
 (0)