diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..8191a20 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Test + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: true + matrix: + os: [ubuntu-latest, windows-latest] + node-version: [10.x, lts/*, latest] + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6eb27ad..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js - -node_js: - - 10 - - stable - -matrix: - fast_finish: true diff --git a/README.md b/README.md index b31d4f2..5177467 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ # postcss-url -[![Travis Build Status](https://img.shields.io/travis/postcss/postcss-url/master.svg?label=unix%20build)](https://travis-ci.org/postcss/postcss-url) -[![AppVeyor Build Status](https://img.shields.io/appveyor/ci/MoOx/postcss-url/master.svg?label=windows%20build)](https://ci.appveyor.com/project/MoOx/postcss-url) -[![dependencies Status](https://david-dm.org/postcss/postcss-url/status.svg)](https://david-dm.org/postcss/postcss-url) -[![devDependencies Status](https://david-dm.org/postcss/postcss-url/dev-status.svg)](https://david-dm.org/postcss/postcss-url?type=dev) +[![GitHub package.json version](https://img.shields.io/github/package-json/v/postcss/postcss-url) ![npm downloads](https://img.shields.io/npm/dm/postcss-url)](https://www.npmjs.com/package/postcss-url) +[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/postcss/postcss-url/test.yml?branch=main)](https://github.com/postcss/postcss-url/actions) +[![License](https://img.shields.io/github/license/postcss/postcss-url)](https://github.com/postcss/postcss-url) > [PostCSS](https://github.com/postcss/postcss) plugin to rebase, inline or copy on url(). diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 6705b28..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,22 +0,0 @@ -# http://www.appveyor.com/docs/appveyor-yml - -environment: - matrix: - - nodejs_version: 6 - - nodejs_version: 8 - - nodejs_version: 10 - -version: "{build}" -build: off -deploy: off -matrix: - fast_finish: true - -install: - - ps: Install-Product node $env:nodejs_version - - npm install - -test_script: - - node --version - - npm --version - - npm test