Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
00e5c8b
fix(deps): update dependency @data-provider/core to v2.6.1
renovate-bot Nov 3, 2020
e521b03
chore(deps): update dependency lint-staged to v10.5.1
renovate-bot Nov 3, 2020
8c417be
fix(deps): update dependency @data-provider/browser-storage to v2.0.6
renovate-bot Nov 3, 2020
6c072fc
fix(deps): update dependency @data-provider/react to v1.3.0
renovate-bot Nov 3, 2020
fa37037
chore(deps): update typescript-eslint monorepo to v4.6.1
renovate-bot Nov 5, 2020
de93cfa
chore(deps): update dependency jest to v26.6.3
renovate-bot Nov 8, 2020
06e3477
chore(deps): update stryker monorepo to v4.1.2
renovate-bot Nov 9, 2020
ef00125
chore(deps): update dependency eslint to v7.13.0
renovate-bot Nov 10, 2020
9b78494
fix(deps): update dependency @data-provider/react to v1.4.0
renovate-bot Nov 12, 2020
52b3917
chore(deps): update typescript-eslint monorepo to v4.7.0
renovate-bot Nov 12, 2020
b7918cb
chore(deps): update dependency cypress to v5.6.0
renovate-bot Nov 12, 2020
219e436
fix(deps): update dependency @data-provider/core to v2.7.0
renovate-bot Nov 17, 2020
369a535
fix(deps): update dependency @data-provider/react to v1.5.0
renovate-bot Nov 19, 2020
dcb8f9a
chore(deps): update typescript-eslint monorepo to v4.8.1
renovate-bot Nov 20, 2020
b25bbb0
chore(deps): update dependency typescript to v4.1.2
renovate-bot Nov 22, 2020
5d1e7da
chore(deps): update dependency prettier to v2.2.0
renovate-bot Nov 23, 2020
97b25f4
chore(deps): update dependency start-server-and-test to v1.11.6
renovate-bot Nov 23, 2020
6e83cbb
chore(deps): update dependency eslint to v7.14.0
renovate-bot Nov 23, 2020
4ca4f47
chore(deps): update dependency react-scripts to v4.0.1
renovate-bot Nov 26, 2020
2bc9eae
chore(deps): update typescript-eslint monorepo to v4.8.2
renovate-bot Nov 26, 2020
ec7486a
fix(deps): update dependency @data-provider/core to v2.8.0
renovate-bot Nov 26, 2020
c82c09f
chore(deps): update dependency lint-staged to v10.5.2
renovate-bot Nov 27, 2020
b84c726
fix(deps): update dependency @data-provider/core to v2.8.1
renovate-bot Nov 30, 2020
d7b9b20
chore(deps): update dependency prettier to v2.2.1
renovate-bot Dec 1, 2020
8d1b670
chore(#196): Update Cypress to v6.0.1. Adapt E2E tests
javierbrea Dec 4, 2020
6b2ad87
chore(#200): Add github actions
javierbrea Dec 5, 2020
a2f59b6
chore(#200): Fix jobs structure
javierbrea Dec 5, 2020
ca8f214
chore(#200): Rename action. Add npm ci step and npm cache
javierbrea Dec 5, 2020
a90c582
chore(#200): Use Coveralls github action
javierbrea Dec 5, 2020
0846a47
chore(#200): Add sonarcloud step
javierbrea Dec 5, 2020
1200541
chore(#200): Run analysis on a different job
javierbrea Dec 5, 2020
3397d0e
chore(#200): Fix typo
javierbrea Dec 5, 2020
6576d08
chore(#200): Fix typo
javierbrea Dec 5, 2020
5d7f946
chore(#200): Add runs-on property to analysis job
javierbrea Dec 5, 2020
b848719
chore(#200): Add full workspace to artifact
javierbrea Dec 5, 2020
bb1189e
chore(#200): Add only coverage folder to artifact
javierbrea Dec 5, 2020
7d86365
chore(#200): Fix coverage folder path
javierbrea Dec 5, 2020
0a67cfe
chore(#200): Add stryker token
javierbrea Dec 5, 2020
680888b
chore(#200): Test artifacts paths
javierbrea Dec 5, 2020
eebae65
chore(#200): Add step to extract branch name
javierbrea Dec 5, 2020
aeeafab
chore(#200): Rename npm commands. Run commands in separated steps
javierbrea Dec 5, 2020
c2a91c8
chore(#200): Fix stryker dashboard environment variable
javierbrea Dec 5, 2020
1330cc2
chore(deps): Remove coveralls dependency
javierbrea Dec 5, 2020
51d406c
chore(deps): Rename analysis job into quality. Enable node matrix again
javierbrea Dec 5, 2020
7efc3a6
chore(#200): Rename coverage artifacts
javierbrea Dec 5, 2020
1b4d621
docs(#200): Change build status badge. Add changes to changelog
javierbrea Dec 5, 2020
431bacb
feat(#196): Add Cypress v6.x to peerDependencies
javierbrea Dec 5, 2020
e5ffbcf
test(#200): Test build action with failing Cypress test
javierbrea Dec 5, 2020
51d7b9a
chore(#200): Upload failed E2E tests screenshots
javierbrea Dec 5, 2020
a20f8cc
chore(#200): Fix typo
javierbrea Dec 5, 2020
8840ea3
chore(#200): Fix typo
javierbrea Dec 5, 2020
a33b264
chore(#200): Run upload artifacts step always
javierbrea Dec 5, 2020
b26745a
chore(#200): Upload also typescript E2E tests screenshots
javierbrea Dec 5, 2020
da69fd5
chore(#200): Use different names for different e2e artifacts
javierbrea Dec 5, 2020
1145019
test(#200): Make e2e tests pass again
javierbrea Dec 5, 2020
3e48eca
chore(#200): Run build action only in PRs and main branches
javierbrea Dec 5, 2020
7bd2c0d
chore(#200): Run build on PRs to master or release
javierbrea Dec 5, 2020
21675cf
chore(#200): Fix on PR event
javierbrea Dec 5, 2020
9858429
Merge pull request #201 from javierbrea/chore-deps-cypress-6
javierbrea Dec 5, 2020
7fb4f85
Merge branch 'master' into release
javierbrea Dec 5, 2020
88bcb67
chore(release): Upgrade version
javierbrea Dec 5, 2020
240c193
Merge branch 'release' of github.com:javierbrea/cypress-localstorage-…
javierbrea Dec 5, 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
90 changes: 90 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
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 mutation
run: npm run test:mutation
env:
BRANCH_NAME: ${{ steps.extract-branch.outputs.branch }}
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_TOKEN }}
- name: Test E2E
run: npm run test:e2e
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/react-app/cypress/screenshots
retention-days: 7
- name: Upload typescript E2E tests screenshots
if: ${{ always() && steps.test-e2e.outcome == 'failure' }}
uses: actions/upload-artifact@v2
with:
name: e2e-typescript-screenshots-${{ matrix.node }}
path: test-e2e/typescript/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
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/cypress-localstorage-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
25 changes: 25 additions & 0 deletions .github/workflows/publish-to-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: publish-to-github
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to GitHub Packages
- 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: '@javierbrea'
- uses: MerthinTechnologies/edit-json-action@v1
with:
filename: './package.json'
key: 'name'
value: '@javierbrea/cypress-localstorage-commands'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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 ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ yarn-error.log*
/reports
.stryker-tmp
stryker.conf.local.js

# caches
.eslintcache
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Removed
### BREAKING CHANGES

## [1.2.5] - 2020-12-05

### Changed
- chore(ci): Migrate CI to github actions. Rename npm commands
- chore(deps): Add Cypress 6.x to peerDependencies
- chore(test): Update Cypress to v6.0.1 in e2e tests
- chore(deps): Update devDependencies

## [1.2.4] - 2020-10-29

### Added
Expand Down
8 changes: 5 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] [![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fjavierbrea%2Fcypress-localstorage-commands%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/javierbrea/cypress-localstorage-commands/master)
[![Build status][build-image]][build-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Quality Gate][quality-gate-image]][quality-gate-url] [![Mutation testing status][mutation-image]][mutation-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 @@ -181,8 +181,10 @@ MIT, see [LICENSE](./LICENSE) for details.

[coveralls-image]: https://coveralls.io/repos/github/javierbrea/cypress-localstorage-commands/badge.svg
[coveralls-url]: https://coveralls.io/github/javierbrea/cypress-localstorage-commands
[travisci-image]: https://travis-ci.com/javierbrea/cypress-localstorage-commands.svg?branch=master
[travisci-url]: https://travis-ci.com/javierbrea/cypress-localstorage-commands
[build-image]: https://github.com/javierbrea/cypress-localstorage-commands/workflows/build/badge.svg?branch=chore-deps-cypress-6
[build-url]: https://github.com/javierbrea/cypress-localstorage-commands/actions?query=workflow%3Abuild
[mutation-image]: https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fjavierbrea%2Fcypress-localstorage-commands%2Fmaster
[mutation-url]: https://dashboard.stryker-mutator.io/reports/github.com/javierbrea/cypress-localstorage-commands/master
[last-commit-image]: https://img.shields.io/github/last-commit/javierbrea/cypress-localstorage-commands.svg
[last-commit-url]: https://github.com/javierbrea/cypress-localstorage-commands/commits
[license-image]: https://img.shields.io/npm/l/cypress-localstorage-commands.svg
Expand Down
Loading