57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
name: All Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
- v2
|
|
paths:
|
|
- '**'
|
|
- '!**/*.md'
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
- v2
|
|
paths:
|
|
- '**'
|
|
- '!**/*.md'
|
|
|
|
jobs:
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Cache node modules
|
|
uses: actions/cache@v3
|
|
id: cache_node_modules
|
|
with:
|
|
# caching node_modules
|
|
path: '**/node_modules'
|
|
key: node_modules-${{ hashFiles('yarn.lock') }}
|
|
- name: Install dependencies
|
|
if: steps.cache_node_modules.outputs.cache-hit != 'true'
|
|
run: yarn install
|
|
env:
|
|
CI: true
|
|
- name: Build core plugins
|
|
run: "cd plugins/core-plugins && npm run build && cd -"
|
|
- name: Run all tests
|
|
run: npm run testall
|
|
- name: Upload to codecov.io
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
files: ./packages/core/coverage/lcov.info
|
|
flags: core
|
|
name: codecov-core
|
|
fail_ci_if_error: false
|