Skip to content

Commit

Permalink
chore(ci): replace Travis CI with GitHub actions (#240)
Browse files Browse the repository at this point in the history
Remove Travis configuration and create a GitHub actions workflow for continuous integration.
  • Loading branch information
connium authored Apr 22, 2020
1 parent 79ceaf5 commit 3c1314a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 23 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Continuous Integration

on: [push]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x]

name: Build and Test

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci
- name: Test
run: npm test
env:
CI: true
- name: Collect test coverage
run: npm run test:coverage
env:
CI: true
- name: Upload test coverage
uses: codecov/[email protected]
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# simple-odf
# simple-odf

simple-odf is a library for creating Open Document Format text files using Typescript/JavaScript and Node.js.

[![Build Status](https://travis-ci.com/connium/simple-odf.svg?branch=master)](https://travis-ci.com/connium/simple-odf)
![](https://github.com/actions/connium/simple-odf/Continuous%20Integration/badge.svg)
[![Version](https://img.shields.io/npm/v/simple-odf.svg)](https://www.npmjs.com/package/simple-odf)
[![codecov](https://codecov.io/gh/connium/simple-odf/branch/master/graph/badge.svg)](https://codecov.io/gh/connium/simple-odf)
[![Dependencies](https://david-dm.org/connium/simple-odf.svg)](https://david-dm.org/connium/simple-odf)
Expand Down Expand Up @@ -64,10 +65,12 @@ style1.setPageBreak(simpleOdf.PageBreak.Before);
style1.setKeepTogether();
p1.setStyle(style1);
// font usage
document.getFontFaceDeclarations().create('Open Sans', 'Open Sans', simpleOdf.FontPitch.Variable);
document
.getFontFaceDeclarations()
.create('Open Sans', 'Open Sans', simpleOdf.FontPitch.Variable);
const style2 = new simpleOdf.ParagraphStyle();
style2.setFontName('Open Sans');
const p2 = body.addParagraph('It always seems impossible until it\'s done.');
const p2 = body.addParagraph("It always seems impossible until it's done.");
p2.setStyle(style2);

body.addHeading('Credits', 2);
Expand All @@ -76,7 +79,9 @@ body.addParagraph('This was quite easy. Do you want to know why?');

const list = body.addList();
list.addItem().addParagraph('one-liner setup');
list.addItem().addParagraph('just write like you would do in a full-blown editor');
list
.addItem()
.addParagraph('just write like you would do in a full-blown editor');

document.saveFlat('/home/homer/My_first_document.fodf');
```
Expand All @@ -100,7 +105,7 @@ Please read [CONTRIBUTING.md](./CONTRIBUTING.md) for details on our code of cond

### Pull Requests

*Before* submitting a pull request, please make sure the following is done...
_Before_ submitting a pull request, please make sure the following is done...

1. Fork the repo and create your branch from `master`. A guide on how to fork a
repository: https://help.github.com/articles/fork-a-repo/
Expand Down

0 comments on commit 3c1314a

Please sign in to comment.