Skip to content

Commit

Permalink
Add CI check to ensure yarn.lock is up-to-date.
Browse files Browse the repository at this point in the history
This will ensure `yarn install` is run after any changes to package.json.

Example failure output:

```
error Your lockfile needs to be updated, but yarn was run with `--frozen-lockfile`.
```
  • Loading branch information
bmish committed Sep 18, 2019
1 parent 72a184a commit e508ec8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ node_js:

cache: yarn

install:
- yarn install --frozen-lockfile --non-interactive

script:
- yarn lint
- yarn test:coverage --runInBand
Expand Down

0 comments on commit e508ec8

Please sign in to comment.