mirror of
https://github.com/lowdefy/lowdefy.git
synced 2024-12-03 05:30:13 +08:00
fix(ci): fix test changed since
This commit is contained in:
parent
f2cb74ba0c
commit
ae0488c072
9
.github/workflows/test-pulls.yml
vendored
9
.github/workflows/test-pulls.yml
vendored
@ -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'
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user