diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..9cada2c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: Tests +on: [push, pull_request] +env: + CI: true + +jobs: + run: + name: Node ${{ matrix.node }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + # switch to `8` when https://github.com/actions/setup-node/issues/27 is fixed + node: [8.16.1, 10, 12] + os: [ubuntu-latest, windows-latest] + + steps: + - name: Clone repository + uses: actions/checkout@v1 + + - name: Set Node.js version + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + + - run: node --version + - run: npm --version + + - name: Install npm dependencies + run: npm ci + + - name: Run tests + run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 28f2dfb..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: node_js - -git: - depth: 5 - -node_js: - - "8" - - "10" - - "12" - -cache: npm diff --git a/README.md b/README.md index e8ae702..17738e6 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,10 @@ -# PostCSS Image Inliner [![Build Status][ci-img]][ci] [![Windows Build Status][winci-img]][winci] +# PostCSS Image Inliner [![Build Status][ci-img]][ci] [PostCSS] plugin to inline local/remote images. [PostCSS]: https://github.com/postcss/postcss -[ci-img]: https://travis-ci.org/bezoerb/postcss-image-inliner.svg -[ci]: https://travis-ci.org/bezoerb/postcss-image-inliner -[winci-img]: https://ci.appveyor.com/api/projects/status/5xaq0ord84y5ho0c?svg=true -[winci]: https://ci.appveyor.com/project/bezoerb/postcss-image-inliner +[ci-img]: https://github.com/bezoerb/inline-critical/workflows/Tests/badge.svg +[ci]: https://github.com/bezoerb/inline-critical/actions?workflow=Tests ```css .foo { diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 7fb42f2..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,27 +0,0 @@ -version: "{build}" - -shallow_clone: true - -environment: - PLATFORM: x64 - matrix: - - NODEJS_VERSION: "8" - - NODEJS_VERSION: "10" - - NODEJS_VERSION: "12" - -install: - - ps: Install-Product node $env:NODEJS_VERSION $env:PLATFORM - - npm ci - -build: off - -test_script: - - node --version - - npm --version - - npm test - -matrix: - fast_finish: true - -cache: - - '%APPDATA%\npm-cache\ -> appveyor.yml,package.json,package-lock.json'