Skip to content

Commit

Permalink
⚒ switch CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed May 16, 2020
1 parent 3054f8b commit 843f337
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 134 deletions.
16 changes: 0 additions & 16 deletions .azure-pipelines/lint-job.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .azure-pipelines/test-job.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .azure-pipelines/website-job.yml

This file was deleted.

77 changes: 77 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: CI
on:
push:
branches: [master, gha]
pull_request:
branches: [master]
schedule:
- cron: 0 0 * * 0

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with: { node-version: 14.x }
- name: Install Packages
run: npm install
- name: Lint
run: npm run -s lint

test:
name: Test
strategy:
matrix:
eslint: [7.x]
node: [14.x]
os: [ubuntu-latest]
include:
# On other platforms
- eslint: 7.x
node: 14.x
os: windows-latest
- eslint: 7.x
node: 14.x
os: macos-latest
# On old Node.js versions
- eslint: 7.x
node: 12.x
os: ubuntu-latest
- eslint: 7.x
node: 10.x
os: ubuntu-latest
- eslint: 6.x
node: 8.x
os: ubuntu-latest
- eslint: 5.x
node: 6.x
os: ubuntu-latest
# On the minimum supported ESLint/Node.js version
- eslint: "4.19.1"
node: "6.5.0"
os: ubuntu-latest

runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with: { node-version: "${{ matrix.node }}" }
- name: Install npm 6.x
run: npm install --global npm@6.x
if: ${{ matrix.node == '6.x' || matrix.node == '6.5.0' }}
- name: Install Packages
run: npm install
- name: Install ESLint ${{ matrix.eslint }}
run: npm install --no-save eslint@${{ matrix.eslint }}
- name: Test
run: npm run -s test:ci
- name: Send Coverage
run: npm run -s codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/Website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Website
on:
push:
branches: [master]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with: { node-version: 14.x }
- name: Install Packages
run: npm install
- name: Build Website
run: npm run -s docs:build
- name: Deploy Website
run: npm run -s docs:deploy -- $GITHUB_TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![npm version](https://img.shields.io/npm/v/eslint-plugin-eslint-comments.svg)](https://www.npmjs.com/package/eslint-plugin-eslint-comments)
[![Downloads/month](https://img.shields.io/npm/dm/eslint-plugin-eslint-comments.svg)](http://www.npmtrends.com/eslint-plugin-eslint-comments)
[![Build Status](https://dev.azure.com/mysticatea/eslint-plugin-eslint-comments/_apis/build/status/continuous-integration?branchName=master)](https://dev.azure.com/mysticatea/eslint-plugin-eslint-comments/_build/latest?definitionId=2&branchName=master)
[![Build Status](https://github.com/mysticatea/eslint-plugin-eslint-comments/workflows/CI/badge.svg)](https://github.com/mysticatea/eslint-plugin-eslint-comments/actions)
[![codecov](https://codecov.io/gh/mysticatea/eslint-plugin-eslint-comments/branch/master/graph/badge.svg)](https://codecov.io/gh/mysticatea/eslint-plugin-eslint-comments)
[![Dependency Status](https://david-dm.org/mysticatea/eslint-plugin-eslint-comments.svg)](https://david-dm.org/mysticatea/eslint-plugin-eslint-comments)

Expand Down
65 changes: 0 additions & 65 deletions azure-pipelines.yml

This file was deleted.

2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![npm version](https://img.shields.io/npm/v/eslint-plugin-eslint-comments.svg)](https://www.npmjs.com/package/eslint-plugin-eslint-comments)
[![Downloads/month](https://img.shields.io/npm/dm/eslint-plugin-eslint-comments.svg)](http://www.npmtrends.com/eslint-plugin-eslint-comments)
[![Build Status](https://dev.azure.com/mysticatea/eslint-plugin-eslint-comments/_apis/build/status/continuous-integration?branchName=master)](https://dev.azure.com/mysticatea/eslint-plugin-eslint-comments/_build/latest?definitionId=2&branchName=master)
[![Build Status](https://github.com/mysticatea/eslint-plugin-eslint-comments/workflows/CI/badge.svg)](https://github.com/mysticatea/eslint-plugin-eslint-comments/actions)
[![codecov](https://codecov.io/gh/mysticatea/eslint-plugin-eslint-comments/branch/master/graph/badge.svg)](https://codecov.io/gh/mysticatea/eslint-plugin-eslint-comments)
[![Dependency Status](https://david-dm.org/mysticatea/eslint-plugin-eslint-comments.svg)](https://david-dm.org/mysticatea/eslint-plugin-eslint-comments)

Expand Down

0 comments on commit 843f337

Please sign in to comment.