Skip to content

Move CI to Github Actions #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jan 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI
on: [push, pull_request]
jobs:
Tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [ '8', '10', '12', '14' ]
os: [ubuntu-latest, windows-latest]
name: Test on Node v${{ matrix.node-version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run all
env:
CI: true
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions test/loader.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ chai.use(sinonChai);
const { expect } = chai;

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

describe('loader', () => {
Expand Down Expand Up @@ -88,7 +88,7 @@ describe('loader', () => {
) {
expect(err).to.exist;

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