Skip to content

Commit

Permalink
Merge pull request #40 from cucumber/refactor-ci
Browse files Browse the repository at this point in the history
Refactor CI
  • Loading branch information
aslakhellesoy authored Nov 12, 2021
2 parents 143d4a2 + fb0f6b2 commit 2496239
Show file tree
Hide file tree
Showing 10 changed files with 827 additions and 1,307 deletions.
18 changes: 18 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": [
"config:base",
":preserveSemverRanges",
":rebaseStalePrs",
":disableDependencyDashboard"
],
"labels": [":robot: dependencies"],
"prHourlyLimit": 0,
"packageRules": [
{
"depTypeList": ["devDependencies", "dependencies"],
"updateTypes": ["minor", "patch"],
"automerge": true,
"automergeType": "branch"
}
]
}
33 changes: 0 additions & 33 deletions .github/workflows/ci.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/release-github.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release GitHub

on:
push:
branches: [release/*]

jobs:
create-github-release:
name: Create GitHub Release and Git tag
runs-on: ubuntu-latest
environment: Release
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: cucumber/action-create-github-release@v1.1.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/release-npm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release NPM

on:
push:
branches: [release/*]

jobs:
publish-npm:
name: Publish NPM module
runs-on: ubuntu-latest
environment: Release
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
cache-dependency-path: package-lock.json
- run: npm install-test
- uses: cucumber/action-publish-npm@v1.0.0
with:
npm-token: ${{ secrets.NPM_TOKEN }}
40 changes: 40 additions & 0 deletions .github/workflows/test-javascript.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: test-javascript

on:
push:
pull_request:
branches:
- main

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
node-version: ['12.x', '14.x', '16.x']
include:
- os: windows-latest
node-version: '16.x'
- os: macos-latest
node-version: '16.x'

steps:
- name: set git core.autocrlf to 'input'
run: git config --global core.autocrlf input
- uses: actions/checkout@v2
- name: with Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: package-lock.json
- run: npm ci
- run: npm run build
- name: npm test
uses: GabrielBB/xvfb-action@v1
with:
run: npm run test
- run: npm run eslint
23 changes: 0 additions & 23 deletions .whitesource

This file was deleted.

76 changes: 25 additions & 51 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,85 +1,59 @@
# CHANGE LOG
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

----
## [Unreleased]

### Added

* Added `World` generic type to `Action` and `PromiseAction`

### Changed

### Deprecated

### Removed

### Fixed
- Added `World` generic type to `Action` and `PromiseAction`

## [5.0.0] - 2021-07-02

### Changed

* Rename the `Interaction` type to `Action`.
* Explain that *tasks* can be decomposed into multiple *interactions*, and that
they are both of type `Action`.
- Rename the `Interaction` type to `Action`.
- Explain that _tasks_ can be decomposed into multiple _interactions_, and that
they are both of type `Action`.

## [4.0.0] - 2021-07-30

### Changed

* Renamed the library back to `@cucumber/screenplay` [#39](https://github.com/cucumber/screenplay.js/pull/39)
- Renamed the library back to `@cucumber/screenplay` [#39](https://github.com/cucumber/screenplay.js/pull/39)

## [3.1.0] - 2021-07-07

### Added

* Expose `eventually` function
- Expose `eventually` function

## [3.0.0] - 2021-07-07

### Changed

* Renamed the library to `@cucumber/playwright` [#29](https://github.com/cucumber/screenplay.js/pull/29)
- Renamed the library to `@cucumber/playwright` [#29](https://github.com/cucumber/screenplay.js/pull/29)

## [2.0.0] - 2021-07-06

### Added
- Added automatic loading of interactions if the `interactions` [world parameter](https://github.com/cucumber/cucumber-js/blob/main/docs/support_files/world.md#world-parameters) is defined
- Added `PromiseInteraction` type

* Added automatic loading of interactions if the `interactions` [world parameter](https://github.com/cucumber/cucumber-js/blob/main/docs/support_files/world.md#world-parameters) is defined
* Added `PromiseInteraction` type
### Fixed

### Removed

* Removed the use of environment variables in the example project
* Removed `InteractionLoader` and `makeInteractionLoader` from the public API

### Fixed
- Removed the use of environment variables in the example project
- Removed `InteractionLoader` and `makeInteractionLoader` from the public API

## [1.0.0] - 2021-07-02

### Changed

* First stable release
- First stable release

## [0.0.1] - 2021-05-17

### Added

* First release

<!-- Releases -->
[Unreleased]: https://github.com/cucumber/screenplay.js/compare/v5.0.0...main
[5.0.0]: https://github.com/cucumber/screenplay.js/compare/v4.0.0...v5.0.0
[4.0.0]: https://github.com/cucumber/screenplay.js/compare/v3.1.0...v4.0.0
[3.1.0]: https://github.com/cucumber/screenplay.js/compare/v3.0.0...v3.1.0
[3.0.0]: https://github.com/cucumber/screenplay.js/compare/v2.0.0...v3.0.0
[2.0.0]: https://github.com/cucumber/screenplay.js/compare/v1.0.0...v2.0.0
[1.0.0]: https://github.com/cucumber/screenplay.js/compare/0.0.1...v1.0.0
[0.0.1]: https://github.com/cucumber/screenplay.js/releases/tag/0.0.1
- First release

[Unreleased]: https://github.com/cucumber/screenplay.js/compare/v5.0.0...HEAD
[5.0.0]: https://github.com/cucumber/screenplay.js/compare/v4.0.0...v5.0.0
[4.0.0]: https://github.com/cucumber/screenplay.js/compare/v3.1.0...v4.0.0
[3.1.0]: https://github.com/cucumber/screenplay.js/compare/v3.0.0...v3.1.0
[3.0.0]: https://github.com/cucumber/screenplay.js/compare/v2.0.0...v3.0.0
[2.0.0]: https://github.com/cucumber/screenplay.js/compare/v1.0.0...v2.0.0
[1.0.0]: https://github.com/cucumber/screenplay.js/compare/v0.0.1...v1.0.0
[0.0.1]: https://github.com/cucumber/screenplay.js/releases/tag/v0.0.1

<!-- Contributors in alphabetical order -->
[aslakhellesoy]: https://github.com/aslakhellesoy
Expand Down
1 change: 1 addition & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See [.github/RELEASING](https://github.com/cucumber/.github/blob/main/RELEASING.md).
Loading

0 comments on commit 2496239

Please sign in to comment.