chore: Update CI test definition

@lowdefy/engine, @lowdefy/blocks-* and @lowdefy/plugin-aws ignored until tests are fixed for v4
This commit is contained in:
Sam 2022-02-16 12:07:40 +02:00
parent e9fbe55baa
commit 0a9370ebc4
No known key found for this signature in database
GPG Key ID: D004126FCD1A6DF0

View File

@ -16,41 +16,10 @@ jobs:
- name: yarn install
run: yarn install
- name: Build packages
run: yarn build --ignore='@lowdefy/blocks-*'
run: yarn build
# 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' --ignore='@lowdefy/blocks-*'
- name: Upload coverage to codecov
run: bash <(curl -s https://codecov.io/bash)
- name: Upload coverage to codeclimate
uses: paambaati/codeclimate-action@v2.7.5
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
coverageLocations: |
${{github.workspace}}/packages/**/coverage/lcov.info:lcov
continue-on-error: true
test-blocks:
name: Test blocks
runs-on: ubuntu-latest
steps:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '12.x'
- uses: actions/checkout@v2
- name: yarn install
run: yarn install
- name: Build packages
run: yarn build --ignore='@lowdefy/api' --ignore='@lowdefy/build' --ignore='@lowdefy/cli' --ignore='@lowdefy/client' --ignore='@lowdefy/engine' --ignore='@lowdefy/layout' --ignore='@lowdefy/node-utils' --ignore='@lowdefy/operators' --ignore='@lowdefy/server*'
# 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 --scope='@lowdefy/blocks-*'
run: yarn test --ignore='@lowdefy/engine' --ignore='@lowdefy/blocks-*' --ignore='@lowdefy/plugin-aws'
- name: Upload coverage to codecov
run: bash <(curl -s https://codecov.io/bash)
@ -71,7 +40,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '12.x'
node-version: '14.x'
- uses: actions/checkout@v2
- name: Check yarn cache integrity
run: yarn install --immutable --immutable-cache --check-cache