Skip to content

Commit 5c93918

Browse files
committed
revert to circle CI & remove GHA
1 parent 66862f0 commit 5c93918

File tree

4 files changed

+108
-24
lines changed

4 files changed

+108
-24
lines changed

.circleci/config.yml

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
version: 2.1
2+
3+
workflows:
4+
version: 2.1
5+
main:
6+
jobs:
7+
- lint
8+
- test-v4
9+
- test-v5
10+
- test-v6
11+
- test-v7
12+
- release:
13+
requires:
14+
- lint
15+
- test-v4
16+
- test-v5
17+
- test-v6
18+
- test-v7
19+
filters:
20+
branches:
21+
only:
22+
- master
23+
24+
jobs:
25+
lint:
26+
docker:
27+
- image: circleci/node:14
28+
steps:
29+
- checkout
30+
- run:
31+
name: Install dependencies
32+
command: npm install
33+
- run:
34+
name: Lint code
35+
command: npm run lint
36+
37+
test-v4:
38+
docker:
39+
- image: circleci/node:14
40+
steps:
41+
- checkout
42+
- run:
43+
name: Install dependencies
44+
command: npm install
45+
- run:
46+
name: Test ESLint 4
47+
command: npm run test:v4
48+
49+
test-v5:
50+
docker:
51+
- image: circleci/node:14
52+
steps:
53+
- checkout
54+
- run:
55+
name: Install dependencies
56+
command: npm install
57+
- run:
58+
name: Test ESLint 5
59+
command: npm run test
60+
61+
test-v6:
62+
docker:
63+
- image: circleci/node:14
64+
steps:
65+
- checkout
66+
- run:
67+
name: Install dependencies
68+
command: npm install
69+
- run:
70+
name: Test ESLint 6
71+
command: npm run test:v6
72+
73+
test-v7:
74+
docker:
75+
- image: circleci/node:14
76+
steps:
77+
- checkout
78+
- run:
79+
name: Install dependencies
80+
command: npm install
81+
- run:
82+
name: Test ESLint 7
83+
command: npm run test:v7
84+
85+
release:
86+
docker:
87+
- image: circleci/node:14
88+
steps:
89+
- checkout
90+
- run:
91+
name: Install dependencies
92+
command: npm install
93+
- run:
94+
name: Run semantic release
95+
command: npm run semantic-release

.github/workflows/test.yml

-23
This file was deleted.

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Cypress ESLint Plugin [![Test](https://github.com/foretagsplatsen/eslint-plugin-cypress/actions/workflows/test.yml/badge.svg)](https://github.com/foretagsplatsen/eslint-plugin-cypress/actions/workflows/test.yml)
1+
# Cypress ESLint Plugin [![CircleCI](https://circleci.com/gh/cypress-io/eslint-plugin-cypress/tree/master.svg?style=svg)](https://circleci.com/gh/cypress-io/eslint-plugin-cypress/tree/master)
22

33
An [ESLint](https://eslint.org) plugin for your [Cypress](https://cypress.io) tests.
44

@@ -127,6 +127,11 @@ Rules with a check mark (✅) are enabled by default while using the `plugin:cyp
127127
| | [no-expect-for-stub](./docs/rules/no-expect-for-stub.md) | Avoid expect(stub)… |
128128
| | [no-useless-then-or-should](./docs/rules/no-useless-then-or-should.md) | Avoid `.should()` and `.then()` when only wrapping commands |
129129

130+
## Creating a rule
131+
Use the `make-rule` script for an interactive guide to scaffold out the rule with associated spec and documentation files.
132+
```sh
133+
npm run make-rule
134+
```
130135
## Chai and `no-unused-expressions`
131136

132137
Using an assertion such as `expect(value).to.be.true` can fail the ESLint rule `no-unused-expressions` even though it's not an error in this case. To fix this, you can install and use [eslint-plugin-chai-friendly](https://www.npmjs.com/package/eslint-plugin-chai-friendly).
@@ -172,3 +177,7 @@ To add a new rule:
172177
* Create a PR
173178

174179
Use the following commit message conventions: https://github.com/semantic-release/semantic-release#commit-message-format
180+
181+
## Community Recognition
182+
183+
This package was made with the help and contribution of [Damien Cassou](https://github.com/DamienCassou).

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
"semantic-release": "semantic-release",
4545
"start": "npm run test-watch",
4646
"test": "jest",
47+
"test:v4": "npm i [email protected] && npm run test",
48+
"test:v5": "npm i [email protected] && npm run test",
49+
"test:v6": "npm i [email protected] && npm run test",
4750
"test:v7": "npm i [email protected] && npm run test",
4851
"test-watch": "jest --watchAll"
4952
},

0 commit comments

Comments
 (0)