Skip to content

Commit

Permalink
Merge pull request #91 from prettier/gh-actions
Browse files Browse the repository at this point in the history
Use Github Actions for CI
  • Loading branch information
BPScott authored Jun 15, 2020
2 parents 47cec49 + 659a790 commit ff30657
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 14 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches: [master]
pull_request:

jobs:
ci:
name: 'Test: Node ${{ matrix.node-version }} - Stylelint ${{ matrix.stylelint-version }}'
runs-on: ubuntu-latest
strategy:
matrix:
stylelint-version: [13.x, 12.x, 11.x, 10.x, 9.5.x]
node-version: [14.x, 12.x, 10.x, 8.x]

exclude:
# stylelint 13 does not support node 8
- stylelint-version: 13.x
node-version: 8.x

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Use Stylelint ${{ matrix.stylelint-version }}
run: yarn upgrade stylelint@${{ matrix.stylelint-version }}

- name: Install
run: yarn install

- name: Test
run: yarn run test
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# stylelint-prettier [![Build Status](https://www.travis-ci.org/prettier/stylelint-prettier.svg?branch=master)](https://www.travis-ci.org/prettier/stylelint-prettier)
# stylelint-prettier [![Build Status](https://github.com/prettier/stylelint-prettier/workflows/CI/badge.svg?branch=master)](https://github.com/prettier/stylelint-prettier/actions?query=workflow%3ACI+branch%3Amaster)

Runs [Prettier](https://github.com/prettier/prettier) as a [Stylelint](https://stylelint.io/) rule and reports differences as individual Stylelint issues.

Expand Down

0 comments on commit ff30657

Please sign in to comment.