diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..fe6e281e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,49 @@ +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.2, 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: Lint + run: npm run lint + + - name: Run jest tests + run: npm run jest -- --runInBand + if: "!(startsWith(matrix.os, 'ubuntu') && matrix.node == 10)" + + - name: Run jest tests with coverage + run: npm run jest -- --runInBand --coverage + if: startsWith(matrix.os, 'ubuntu') && matrix.node == 10 + + - name: Run Coveralls + uses: coverallsapp/github-action@master + if: startsWith(matrix.os, 'ubuntu') && matrix.node == 10 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + path-to-lcov: "./.coverage/lcov.info" diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5d73617c..00000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: node_js -git: - depth: 1 -cache: npm -matrix: - include: - - node_js: "8" - script: npm run pretest - env: CI=pretest - - node_js: "8" - script: npm run jest -- --runInBand --coverage - env: CI=coverage - - node_js: "10" - script: npm run jest -- --runInBand - env: CI=tests 10 - - node_js: "12" - script: npm run jest -- --runInBand - env: CI=tests 12 -after_success: - - if [ "$CI" = "coverage" ]; then cat ./.coverage/lcov.info | ./node_modules/.bin/coveralls; fi diff --git a/README.md b/README.md index e12c7b3e..b49d6823 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ # stylelint-scss [![NPM version](https://img.shields.io/npm/v/stylelint-scss.svg)](https://www.npmjs.com/package/stylelint-scss) -[![Build Status](https://travis-ci.org/kristerkari/stylelint-scss.svg?branch=master)](https://travis-ci.org/kristerkari/stylelint-scss) -[![Build status](https://ci.appveyor.com/api/projects/status/xa12kju6qmvmqs1n/branch/master?svg=true)](https://ci.appveyor.com/project/kristerkari/stylelint-scss/branch/master) -[![Coverage Status](https://coveralls.io/repos/github/kristerkari/stylelint-scss/badge.svg?branch=master)](https://coveralls.io/github/kristerkari/stylelint-scss?branch=master) +[![Build Status](https://github.com/kristerkari/stylelint-scss/workflows/Tests/badge.svg)](https://github.com/kristerkari/stylelint-scss/actions?workflow=Tests) +[![Coverage Status](https://img.shields.io/coveralls/github/kristerkari/stylelint-scss/master.svg)](https://coveralls.io/github/kristerkari/stylelint-scss?branch=master) [![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-scss.svg)](http://npmcharts.com/compare/stylelint-scss) +[![Downloads per month](https://img.shields.io/npm/dm/stylelint-scss.svg)](https://npmcharts.com/compare/stylelint-scss) [![Greenkeeper badge](https://badges.greenkeeper.io/kristerkari/stylelint-scss.svg)](https://greenkeeper.io/) A collection of SCSS specific linting rules for [stylelint](https://github.com/stylelint/stylelint) (in a form of a plugin). diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 9ca34606..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,18 +0,0 @@ -# http://www.appveyor.com/docs/appveyor-yml - -environment: - matrix: - - nodejs_version: 8 - -version: "{build}" -build: off -deploy: off - -install: - - ps: Install-Product node $env:nodejs_version - - npm install - -test_script: - - node --version - - npm --version - - cmd: "npm test" diff --git a/package-lock.json b/package-lock.json index 6e9570d8..3cd417d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2356,20 +2356,6 @@ } } }, - "coveralls": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.0.7.tgz", - "integrity": "sha512-mUuH2MFOYB2oBaA4D4Ykqi9LaEYpMMlsiOMJOrv358yAjP6enPIk55fod2fNJ8AvwoYXStWQls37rA+s5e7boA==", - "dev": true, - "requires": { - "growl": "~> 1.10.0", - "js-yaml": "^3.13.1", - "lcov-parse": "^0.0.10", - "log-driver": "^1.2.7", - "minimist": "^1.2.0", - "request": "^2.86.0" - } - }, "cross-spawn": { "version": "6.0.5", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", @@ -4304,12 +4290,6 @@ } } }, - "growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true - }, "growly": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", @@ -5700,12 +5680,6 @@ "integrity": "sha512-Vi3nxDGMm/z+lAaCjvAR1u+7fiv+sG6gU/iYDj5QOF8h76ytK9EW/EKfF0NeTyiGBi8Jy6Hklty/vxISrLox3w==", "dev": true }, - "lcov-parse": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-0.0.10.tgz", - "integrity": "sha1-GwuP+ayceIklBYK3C3ExXZ2m2aM=", - "dev": true - }, "left-pad": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz", @@ -6144,12 +6118,6 @@ "integrity": "sha1-vyJJiGzlFM2hEvrpIYzcBlIR/Jw=", "dev": true }, - "log-driver": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/log-driver/-/log-driver-1.2.7.tgz", - "integrity": "sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==", - "dev": true - }, "log-symbols": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", diff --git a/package.json b/package.json index 7a645d84..d6fffcff 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ "@babel/preset-env": "^7.7.1", "babel-plugin-istanbul": "^5.2.0", "babel-preset-jest": "^24.9.0", - "coveralls": "^3.0.7", "eslint": "^6.6.0", "eslint-config-stylelint": "^11.1.0", "eslint-plugin-lodash": "^6.0.0", @@ -160,7 +159,6 @@ } }, "scripts": { - "coveralls": "nyc report --reporter=text-lcov | coveralls", "prebuild": "rimraf dist", "build": "babel src --out-dir dist", "lint": "eslint . --ignore-path .gitignore",