Skip to content

Commit

Permalink
Use GitHub Actions instead (#115)
Browse files Browse the repository at this point in the history
* Use GitHub Actions instead

* Set timeout
  • Loading branch information
1000ch committed Feb 28, 2021
1 parent 53cc7cd commit 6668778
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 9 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,46 @@
name: test

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
linux:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
CI: true

macos:
runs-on: macos-latest

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

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
CI: true
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -12,7 +12,7 @@
},
"scripts": {
"postinstall": "node lib/install.js",
"test": "xo && ava"
"test": "xo && ava --timeout=120s"
},
"files": [
"index.js",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
@@ -1,4 +1,4 @@
# optipng-bin [![Build Status](https://travis-ci.org/imagemin/optipng-bin.svg?branch=master)](https://travis-ci.org/imagemin/optipng-bin)
# optipng-bin ![GitHub Actions Status](https://github.com/imagemin/optipng-bin/workflows/test/badge.svg?branch=master)

> [OptiPNG](http://optipng.sourceforge.net) is a PNG optimizer that recompresses image files to a smaller size, without losing any information
Expand Down

0 comments on commit 6668778

Please sign in to comment.