Skip to content
This repository has been archived by the owner. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
30acccf
chore(deps): update dependency webpack to v5.3.2
renovate-bot Nov 1, 2020
0a0a737
fix(deps): update dependency @data-provider/core to v2.6.1
renovate-bot Nov 3, 2020
2e1ea44
chore(deps): update dependency lint-staged to v10.5.1
renovate-bot Nov 3, 2020
523a636
fix(deps): update dependency @data-provider/axios to v2.1.4
renovate-bot Nov 3, 2020
a85ed69
chore(deps): update dependency webpack to v5.4.0
renovate-bot Nov 6, 2020
b5232b5
chore(deps): update dependency jest to v26.6.3
renovate-bot Nov 8, 2020
84a4409
chore(deps): update dependency webpack-cli to v4.2.0
renovate-bot Nov 9, 2020
513a1a5
chore(deps): update dependency eslint to v7.13.0
renovate-bot Nov 10, 2020
21242ad
chore(deps): update dependency cypress to v5.6.0
renovate-bot Nov 12, 2020
a439437
fix(deps): update dependency @data-provider/core to v2.7.0
renovate-bot Nov 17, 2020
1d4526e
chore(deps): update dependency webpack to v5.6.0
renovate-bot Nov 23, 2020
519ea40
chore(deps): update dependency prettier to v2.2.0
renovate-bot Nov 23, 2020
cf00390
chore(deps): update dependency start-server-and-test to v1.11.6
renovate-bot Nov 23, 2020
bdab90a
chore(deps): update dependency eslint to v7.14.0
renovate-bot Nov 23, 2020
5b2ff6f
fix(deps): update dependency @data-provider/core to v2.8.0
renovate-bot Nov 26, 2020
32bc4b9
chore(deps): update dependency lint-staged to v10.5.2
renovate-bot Nov 27, 2020
30b87a9
chore(deps): update dependency @testing-library/cypress to v7.0.2
renovate-bot Nov 27, 2020
e139d75
fix(deps): update dependency @data-provider/axios to v2.1.5
renovate-bot Nov 27, 2020
3090b26
fix(deps): update dependency @data-provider/core to v2.8.1
renovate-bot Nov 30, 2020
7b54b7e
chore(deps): update dependency prettier to v2.2.1
renovate-bot Dec 1, 2020
2e455b3
chore(deps): update dependency webpack to v5.9.0
renovate-bot Dec 1, 2020
5c59ede
chore(deps): update dependency cross-env to v7.0.3
renovate-bot Dec 4, 2020
6af50da
chore(deps): update dependency eslint-plugin-prettier to v3.2.0
renovate-bot Dec 6, 2020
9bd2080
chore(deps): update dependency lint-staged to v10.5.3
renovate-bot Dec 7, 2020
ca86ceb
chore(deps): update dependency webpack to v5.10.0
renovate-bot Dec 7, 2020
cc7ef31
chore(deps): update dependency eslint to v7.15.0
renovate-bot Dec 8, 2020
9060ccd
Merge branch 'master' into release
javierbrea Dec 21, 2020
dcb50fe
chore(ci): Migrate to Github actions. Support all nodejs releases tha…
javierbrea Dec 21, 2020
294b568
chore(deps): Revert add support for node 10.x
javierbrea Dec 21, 2020
afa42c1
chore(deps): Revert add support for node 10.x
javierbrea Dec 21, 2020
998a318
chore(ci): Upload test e2e failed screenshots
javierbrea Dec 21, 2020
9a067fa
Merge pull request #144 from mocks-server/chore-ci-github-actions
javierbrea Dec 21, 2020
db42c9b
chore(release): Upgrade version
javierbrea Dec 21, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: build
on:
push:
branches:
- master
- release
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["12.19.0", "14.15.0", "15.2.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
id: extract-branch
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Test unit
run: npm run test:unit
- name: Test E2E
run: npm run test:e2e:ci
id: test-e2e
- name: Upload E2E tests screenshots
if: ${{ always() && steps.test-e2e.outcome == 'failure' }}
uses: actions/upload-artifact@v2
with:
name: e2e-screenshots-${{ matrix.node }}
path: test-e2e/cypress/screenshots
retention-days: 7
- name: Upload test results
uses: actions/upload-artifact@v2
with:
name: coverage-${{ matrix.node }}
path: coverage
retention-days: 1
quality:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download test results
uses: actions/download-artifact@v2
with:
name: coverage-15.2.0
path: coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: SonarCloud Scan
if: env.SONAR_TOKEN != ''
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
44 changes: 44 additions & 0 deletions .github/workflows/check-package-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: check-package-version
on:
pull_request:
branches:
- master
jobs:
check-package-version:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get NPM version is new
id: check
uses: EndBug/version-check@v1.6.0
with:
diff-search: true
file-name: ./package.json
file-url: https://unpkg.com/@mocks-server/cypress-commands@latest/package.json
static-checking: localIsNew
- name: Check version is new
if: steps.check.outputs.changed != 'true'
run: |
echo "Version not changed"
exit 1
- name: Get NPM version
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.1.0
- name: Check Changelog version
id: changelog_reader
uses: mindsers/changelog-reader-action@v2.0.0
with:
version: ${{ steps.package-version.outputs.current-version }}
path: ./CHANGELOG.md
- name: Read version from Sonar config
id: sonar-version
uses: christian-draeger/read-properties@1.0.1
with:
path: './sonar-project.properties'
property: 'sonar.projectVersion'
- name: Check Sonar version
if: steps.sonar-version.outputs.value != steps.package-version.outputs.current-version
run: |
echo "Version not changed"
exit 1
18 changes: 18 additions & 0 deletions .github/workflows/publish-to-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: publish-to-github
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@mocks-server'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: publish-to-npm
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org/'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 0 additions & 2 deletions .travis.yml

This file was deleted.

9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
### Removed

## [1.0.8] - 2020-12-21

### Added
- chore(deps): Add support for Node.js v15.x
- chore(deps): Support Cypress v6.x

### Changed
- chore(ci): Migrate from Travis CI to github actions

## [1.0.7] - 2020-10-28
### Changed
- Update dependencies
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build status][travisci-image]][travisci-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Quality Gate][quality-gate-image]][quality-gate-url]
[![Build status][build-image]][build-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Quality Gate][quality-gate-image]][quality-gate-url]

[![NPM dependencies][npm-dependencies-image]][npm-dependencies-url] [![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com) [![Last commit][last-commit-image]][last-commit-url] [![Last release][release-image]][release-url]

Expand Down Expand Up @@ -110,8 +110,8 @@ MIT, see [LICENSE](./LICENSE) for details.

[coveralls-image]: https://coveralls.io/repos/github/mocks-server/cypress-commands/badge.svg
[coveralls-url]: https://coveralls.io/github/mocks-server/cypress-commands
[travisci-image]: https://travis-ci.com/mocks-server/cypress-commands.svg?branch=master
[travisci-url]: https://travis-ci.com/mocks-server/cypress-commands
[build-image]: https://github.com/mocks-server/cypress-commands/workflows/build/badge.svg?branch=master
[build-url]: https://github.com/mocks-server/cypress-commands/actions?query=workflow%3Abuild+branch%3Amaster
[last-commit-image]: https://img.shields.io/github/last-commit/mocks-server/cypress-commands.svg
[last-commit-url]: https://github.com/mocks-server/cypress-commands/commits
[license-image]: https://img.shields.io/npm/l/@mocks-server/cypress-commands.svg
Expand Down
Loading