Merge pull request #6466 from freesewing/dependabot/npm_and_yarn/algo… #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |