Skip to content

Commit

Permalink
Switch to github workflow for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
w0rm committed Aug 29, 2021
1 parent a1b8242 commit 22e8c3a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 11 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
npm-test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: ['10', '12', '14']

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: |
npm install
npm test
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# gulp-postcss

[![Build Status](https://img.shields.io/travis/postcss/gulp-postcss.svg)](https://travis-ci.org/postcss/gulp-postcss)
![Build Status](https://github.com/postcss/gulp-postcss/actions/workflows/test.yml/badge.svg?branch=main)
[![Coverage Status](https://img.shields.io/coveralls/postcss/gulp-postcss.svg)](https://coveralls.io/r/postcss/gulp-postcss)

[PostCSS](https://github.com/postcss/postcss) gulp plugin to pipe CSS through
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"node": "^10 || ^12 || >=14"
},
"scripts": {
"coveralls": "coveralls < coverage/lcov.info",
"pretest": "eslint *.js",
"test": "nyc mocha test.js"
},
Expand All @@ -47,7 +46,6 @@
"vinyl-sourcemaps-apply": "^0.2.1"
},
"devDependencies": {
"coveralls": "^3.0.3",
"eslint": "^5.16.0",
"gulp-sourcemaps": "^2.6.5",
"mocha": "^5.2.0",
Expand Down

0 comments on commit 22e8c3a

Please sign in to comment.