Skip to content

Commit 022e26d

Browse files
authored
chore: get 6.x ready for patch release (#2001)
* specify node version in babel config * delete travis and appveyor files * add github actions? * add upgrade banner * remove temp branch from build config * rename * test on linux and windows * update README.md
1 parent 71ae9cf commit 022e26d

File tree

7 files changed

+87
-66
lines changed

7 files changed

+87
-66
lines changed

.github/workflows/build.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Build
5+
6+
on:
7+
push:
8+
branches:
9+
- 6.x
10+
pull_request:
11+
branches:
12+
- 6.x
13+
14+
jobs:
15+
test:
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
matrix:
19+
os:
20+
- ubuntu-latest
21+
- windows-latest
22+
node-version: [8.x, 10.x, 12.x]
23+
fail-fast: false
24+
25+
steps:
26+
- uses: actions/checkout@v3
27+
- name: with Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
- run: npm i -g yarn
32+
- run: yarn
33+
- run: yarn test

.travis.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1-
# Cucumber.js
1+
🚨🚨🚨
22

3-
[![OpenCollective](https://opencollective.com/cucumber/backers/badge.svg)](https://opencollective.com/cucumber)
4-
[![OpenCollective](https://opencollective.com/cucumber/sponsors/badge.svg)](https://opencollective.com/cucumber)
3+
Cucumber is publishing new releases under `@cucumber/cucumber` on npm:
4+
<https://www.npmjs.com/package/@cucumber/cucumber>
55

6-
[![TravisCI](https://img.shields.io/travis/cucumber/cucumber-js/master.svg?label=travis-ci)](https://travis-ci.org/cucumber/cucumber-js/branches)
7-
[![AppVeyor Status](https://img.shields.io/appveyor/ci/charlierudolph/cucumber-js/master.svg?label=appveyor)](https://ci.appveyor.com/project/charlierudolph/cucumber-js/history)
8-
[![Dependencies](https://david-dm.org/cucumber/cucumber-js.svg)](https://david-dm.org/cucumber/cucumber-js)
9-
[![Coverage Status](https://coveralls.io/repos/github/cucumber/cucumber-js/badge.svg?branch=master)](https://coveralls.io/github/cucumber/cucumber-js?branch=master)
6+
Features in the latest version include:
7+
- `BeforeEach` and `AfterEach` hooks
8+
- Searchable HTML reports
9+
- Native ESM support
10+
- Write scenarios in Markdown
11+
12+
Full changelog: https://github.com/cucumber/cucumber-js/blob/main/CHANGELOG.md
13+
Upgrading guide: https://github.com/cucumber/cucumber-js/blob/main/UPGRADING.md
14+
15+
🚨🚨🚨
16+
17+
# Cucumber
1018

1119
[Cucumber](https://cucumber.io) is a tool for running automated tests written in plain language. Because they're
1220
written in plain language, they can be read by anyone on your team. Because they can be
@@ -15,10 +23,6 @@ your team.
1523

1624
Cucumber.js is the JavaScript implementation of Cucumber and runs on the [maintained Node.js versions](https://github.com/nodejs/Release) and *modern* web browsers.
1725

18-
## Try it now
19-
20-
We've put a demo of Cucumber.js to [run in your browser](http://cucumber.github.io/cucumber-js/). Why don't you give it a try before anything else?
21-
2226
## Help & support
2327

2428
* See here: https://cucumber.io/support

appveyor.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
"@babel/plugin-transform-shorthand-properties"
55
],
66
presets: [
7-
["@babel/preset-env", {targets: "maintained node versions"}]
7+
["@babel/preset-env", {targets: "node 8"}]
88
],
99
env: {
1010
test_coverage: {

src/cli/run.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Cli from './'
2+
import upgradeBanner from './upgrade_banner'
23
import VError from 'verror'
34

45
function exitWithError(error) {
@@ -21,6 +22,10 @@ export default async function run() {
2122
exitWithError(error)
2223
}
2324

25+
if (result.success) {
26+
console.error(upgradeBanner)
27+
}
28+
2429
const exitCode = result.success ? 0 : 1
2530
if (result.shouldExitImmediately) {
2631
process.exit(exitCode)

src/cli/upgrade_banner.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import Table from 'cli-table3'
2+
import colors from 'colors'
3+
4+
const text = `\
5+
Cucumber is publishing new releases under ${colors.bold(
6+
'@cucumber/cucumber'
7+
)} on npm:
8+
${colors.cyan('https://www.npmjs.com/package/@cucumber/cucumber')}
9+
10+
Features in the latest version include:
11+
${colors.cyan('*')} ${colors.italic('BeforeEach')} and ${colors.italic(
12+
'AfterEach'
13+
)} hooks
14+
${colors.cyan('*')} Searchable HTML reports
15+
${colors.cyan('*')} Native ESM support
16+
${colors.cyan('*')} Write scenarios in Markdown
17+
18+
Full changelog: ${colors.cyan(
19+
'https://github.com/cucumber/cucumber-js/blob/main/CHANGELOG.md'
20+
)}
21+
Upgrading guide: ${colors.cyan(
22+
'https://github.com/cucumber/cucumber-js/blob/main/UPGRADING.md'
23+
)}`
24+
25+
const table = new Table({
26+
style: {
27+
head: [],
28+
border: ['green'],
29+
},
30+
})
31+
table.push([text])
32+
33+
export default table.toString()

0 commit comments

Comments
 (0)