Skip to content

Commit

Permalink
chore(ci): automatically update failed snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Dec 11, 2020
1 parent b0bef57 commit eb9be52
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@ jobs:
run: sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
- run: yarn
- run: yarn test
- name: Update failed snapshots
run: |
yarn test:unit -u
git config user.name github-actions
git config user.email [email protected]
git add lib/__snapshots__
git commit -m "Update snapshots"
git push
if: ${{ failure() }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "node bin/convert-entities-db.js && node bin/generate-canonical-domain-csv.js && node bin/build-entity-json-files.js && node bin/generate-sql.js && generate-export-aliases",
"lint:fix": "prettier --print-width=100 --write '**/*.js'",
"start": "mkdir -p .tmp && node bin/merge-origins-with-entities.js && node bin/create-markdown.js",
"test": "npm run build && jest 'lib/*'"
"test": "npm run build && npm run test:unit",
"test:unit": "jest 'lib/*'"
},
"keywords": [
"third-party",
Expand Down

0 comments on commit eb9be52

Please sign in to comment.