Skip to content

Commit 1148a04

Browse files
committed
Use GitHub Actions
1 parent ccd5481 commit 1148a04

File tree

3 files changed

+27
-9
lines changed

3 files changed

+27
-9
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
Test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version:
11+
- 12
12+
- 16
13+
steps:
14+
- name: Clone repository
15+
uses: actions/checkout@v2
16+
17+
- name: Use Node ${{ matrix.node-version }}
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Test
26+
run: npm test

.travis.yml

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"test": "ava test/*.js --verbose --serial",
1818
"build": "babel src/ --out-dir lib/",
1919
"watch": "babel --watch src/ --out-dir lib/",
20-
"prepublish": "npm test",
20+
"prepublishOnly": "npm run build && npm test",
2121
"pretest": "npm run build"
2222
},
2323
"repository": "2createStudio/postcss-sprites",

0 commit comments

Comments
 (0)