From c46fadacd2ec8e71c1f7d99ff38f6314214104da Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 19 Sep 2019 12:27:37 +0300 Subject: [PATCH 1/2] Switch to GitHub Actions CI. --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ .travis.yml | 16 ---------------- README.md | 3 ++- appveyor.yml | 33 --------------------------------- 4 files changed, 36 insertions(+), 50 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml 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 ed9d74e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -git: - depth: 1 - -branches: - only: - - master - - /^greenkeeper/.*$/ - -language: node_js - -cache: npm - -node_js: - - "12" - - "10" - - "8" diff --git a/README.md b/README.md index 9847e58..d870020 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # stylelint-config-recommended-scss -[![NPM version](http://img.shields.io/npm/v/stylelint-config-recommended-scss.svg)](https://www.npmjs.org/package/stylelint-config-recommended-scss) [![Build Status](https://travis-ci.org/kristerkari/stylelint-config-recommended-scss.svg?branch=master)](https://travis-ci.org/kristerkari/stylelint-config-recommended-scss) [![Build status](https://ci.appveyor.com/api/projects/status/s5iy3031nj8dctol?svg=true)](https://ci.appveyor.com/project/kristerkari/stylelint-config-recommended-scss) +[![NPM version](http://img.shields.io/npm/v/stylelint-config-recommended-scss.svg)](https://www.npmjs.org/package/stylelint-config-recommended-scss) +[![Build Status](https://github.com/kristerkari/stylelint-config-recommended-scss/workflows/Tests/badge.svg)](https://github.com/kristerkari/stylelint-config-recommended-scss/actions?workflow=Tests) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github) [![Downloads per month](https://img.shields.io/npm/dm/stylelint-config-recommended-scss.svg)](http://npmcharts.com/compare/stylelint-config-recommended-scss) [![Greenkeeper badge](https://badges.greenkeeper.io/kristerkari/stylelint-config-recommended-scss.svg)](https://greenkeeper.io/) diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index dacbd31..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,33 +0,0 @@ -# https://www.appveyor.com/docs/appveyor-yml/ - -environment: - matrix: - - nodejs_version: 12 - - nodejs_version: 10 - - nodejs_version: 8 - -version: "{build}" - -build: off - -deploy: off - -branches: - only: - - master - -clone_depth: 1 - -skip_tags: true - -install: - - ps: Install-Product node $env:nodejs_version - - npm ci - -test_script: - - node --version - - npm --version - - npm test - -cache: - - '%APPDATA%\npm-cache\ -> appveyor.yml,package.json,package-lock.json' From 26bfe5728c5fead6a9a7adb2abdae9d7f604087b Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 4 Oct 2019 14:10:12 +0300 Subject: [PATCH 2/2] Update README.md https link to npmcharts --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d870020..9581f43 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![NPM version](http://img.shields.io/npm/v/stylelint-config-recommended-scss.svg)](https://www.npmjs.org/package/stylelint-config-recommended-scss) [![Build Status](https://github.com/kristerkari/stylelint-config-recommended-scss/workflows/Tests/badge.svg)](https://github.com/kristerkari/stylelint-config-recommended-scss/actions?workflow=Tests) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github) -[![Downloads per month](https://img.shields.io/npm/dm/stylelint-config-recommended-scss.svg)](http://npmcharts.com/compare/stylelint-config-recommended-scss) +[![Downloads per month](https://img.shields.io/npm/dm/stylelint-config-recommended-scss.svg)](https://npmcharts.com/compare/stylelint-config-recommended-scss) [![Greenkeeper badge](https://badges.greenkeeper.io/kristerkari/stylelint-config-recommended-scss.svg)](https://greenkeeper.io/) > The recommended shareable SCSS config for stylelint.