Skip to content

Commit faeda20

Browse files
committed
switch from Travis CI to GitHub Actions
https://github.com/features/actions
1 parent ef16c1f commit faeda20

File tree

5 files changed

+25
-9
lines changed

5 files changed

+25
-9
lines changed

.github/.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[*.workflow]
2+
indent_style = space

.github/main.workflow

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
workflow "Test" {
2+
on = "push"
3+
resolves = ["npm"]
4+
}
5+
6+
action "npm" {
7+
uses = "docker://node:alpine"
8+
runs = "npm"
9+
args = "install-ci-test"
10+
secrets = ["CODECOV_TOKEN"]
11+
}

.travis.yml

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

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ISC License (ISC)
2-
Copyright 2017 - 2019 Shinnosuke Watanabe
2+
Copyright 2017 - 2019 Watanabe Shinnosuke
33

44
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
55

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# clean-css-promise
22

33
[![npm version](https://img.shields.io/npm/v/clean-css-promise.svg)](https://www.npmjs.com/package/clean-css-promise)
4-
[![Build Status](https://travis-ci.com/shinnn/clean-css-promise.svg?branch=master)](https://travis-ci.com/shinnn/clean-css-promise)
4+
[![Github Actions](https://action-badges.now.sh/shinnn/clean-css-promise)](https://wdp9fww0r9.execute-api.us-west-2.amazonaws.com/production/results/shinnn/clean-css-promise)
55
[![codecov](https://codecov.io/gh/shinnn/clean-css-promise/branch/master/graph/badge.svg)](https://codecov.io/gh/shinnn/clean-css-promise)
66

77
[clean-css](https://github.com/jakubpawlowicz/clean-css) with the default [Promise](https://developer.mozilla.org/docs/Mozilla/JavaScript_code_modules/Promise.jsm/Promise) interface and some improvements
@@ -10,8 +10,15 @@
1010
const CleanCssPromise = require('clean-css-promise');
1111

1212
(async () => {
13-
const {styles} = new CleanCssPromise().minify('p { margin: 1px 1px 1px 1px; }');
14-
//=> p{margin:1px}
13+
const {styles} = await new CleanCssPromise().minify(`
14+
p {
15+
color: #ff0000;
16+
}
17+
18+
b {
19+
/* nothing */
20+
}
21+
`); //=> 'p{color:red}'
1522
})();
1623
```
1724

@@ -56,4 +63,4 @@ clean-css dangerously ignores these errors but clean-css-promise doesn't, becaus
5663

5764
## License
5865

59-
[ISC License](./LICENSE) © 2017 - 2019 Shinnosuke Watanabe
66+
[ISC License](./LICENSE) © 2017 - 2019 Watanabe Shinnosuke

0 commit comments

Comments
 (0)