fix(ci): fix test changed since

This commit is contained in:
Sam Tolmay 2020-11-20 15:28:38 +02:00
parent f2cb74ba0c
commit ae0488c072
2 changed files with 5 additions and 5 deletions

View File

@ -12,9 +12,10 @@ jobs:
with:
node-version: '12.x'
- uses: actions/checkout@v2
with:
# needed for yarn version check, checks out entire repo
fetch-depth: 0
with: |
git fetch --no-tags origin ${{ github.base_ref }}
git checkout -b ${{ github.base_ref }}
git checkout ${{ github.head_ref }}
- name: Check yarn cache integrity
run: yarn install --immutable --immutable-cache
- name: Build packages
@ -22,7 +23,7 @@ jobs:
# Make tests fail faster
- name: Test changes since develop
run: yarn test:since-develop
run: yarn test --ignore='@lowdefy/format' -- --changedSince=${{ github.base_ref }}
# format tests don't pass on node 12 since icu is missing and tests don't work with locales
- name: Test packages
run: yarn test --ignore='@lowdefy/format'

View File

@ -31,7 +31,6 @@
"prepare": "lerna run prepare",
"prettier": "prettier --config .prettierrc --write **/*.js",
"test": "lerna run test",
"test:since-develop": "lerna run test --ignore='@lowdefy/format' -- --changedSince=develop",
"test:ci": "yarn install --immutable --immutable-cache --check-cache && yarn build && yarn test --ignore='@lowdefy/format'"
},
"devDependencies": {