From b317c42b86a09d8c1c21cd6f7dee2a952451ec5d Mon Sep 17 00:00:00 2001 From: Shogo Sensui Date: Sun, 28 Feb 2021 15:56:25 +0900 Subject: [PATCH] Use GitHub Actions instead (#7) --- .github/workflows/test.yml | 46 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 5 ----- readme.md | 2 +- 3 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e965968 --- /dev/null +++ b/.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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9d7745e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - '14' - - '12' - - '10' diff --git a/readme.md b/readme.md index 470d423..270db5d 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -# pngout-bin [![Build Status](http://img.shields.io/travis/imagemin/pngout-bin.svg?style=flat)](https://travis-ci.org/imagemin/pngout-bin) +# pngout-bin ![GitHub Actions Status](https://github.com/imagemin/pngout-bin/workflows/test/badge.svg?branch=master) > [pngout](http://advsys.net/ken/util/pngout.htm) optimizes the size of PNG files losslessly