Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(CI): add tests for ESLint 8 #41

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
55 changes: 55 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: validate

on:
push: {}
pull_request: {}

jobs:
main:
strategy:
matrix:
eslint: [5, 6, 7, 8]
node: [6.14, 6, 8, 10, 12, 14, 16]
exclude:
- eslint: 8
node: 10
- eslint: 8
node: 8
- eslint: 8
node: 6
- eslint: 8
node: 6.14
- eslint: 7
node: 8
- eslint: 7
node: 6
- eslint: 7
node: 6.14
- eslint: 6
node: 6
- eslint: 6
node: 6.14

runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.0

- name: ⬇️ Checkout repo
uses: actions/checkout@v2

- name: ⎔ Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false

- name: 📥 Install ESLint
run: npm install eslint@${{ matrix.eslint }}

- name: ▶️ Run tests
run: npm run test
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
.DS_Store

# these cause more harm than good
# when working with contributors
package-lock.json
yarn.lock
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-standard",
"description": "ESlint Plugin for the Standard Linter",
"description": "ESLint Plugin for the Standard Linter",
"version": "5.0.0",
"author": {
"name": "Feross Aboukhadijeh",
Expand All @@ -10,12 +10,6 @@
"bugs": {
"url": "https://github.com/standard/eslint-plugin-standard/issues"
},
"dependencies": {},
"devDependencies": {
"eslint": "^7.0.0",
"mocha": "^6.2.0",
"standard": "*"
},
"homepage": "https://github.com/standard/eslint-plugin-standard#readme",
"keywords": [
"eslint",
Expand All @@ -30,9 +24,18 @@
"scripts": {
"test": "standard && mocha tests/"
},
"dependencies": {},
"devDependencies": {
"eslint": "^8.0.0",
"mocha": "^6.2.3",
"standard": "*"
},
"peerDependencies": {
"eslint": ">=5.0.0"
},
"engines": {
"node": ">=6.14.0"
},
"funding": [
{
"type": "github",
Expand Down