|
1 |
| -name: Tests |
| 1 | +name: tests |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | push:
|
5 | 5 | branches:
|
6 |
| - - feature/vue-3 |
| 6 | + - master |
| 7 | + - develop |
7 | 8 | pull_request:
|
8 | 9 |
|
9 | 10 | jobs:
|
10 |
| - |
11 |
| - Build: |
| 11 | + build: |
12 | 12 | runs-on: macos-latest
|
13 | 13 | steps:
|
14 |
| - - uses: actions/checkout@v2 |
15 |
| - - uses: actions/setup-node@v2 |
16 |
| - with: |
17 |
| - node-version: 20 |
18 |
| - cache: npm |
19 |
| - - name: Install modules |
20 |
| - run: npm install |
21 |
| - - name: Build the package |
22 |
| - run: npm run build |
| 14 | + - uses: actions/checkout@v4 |
| 15 | + - uses: actions/setup-node@v4 |
| 16 | + with: |
| 17 | + node-version: 22 |
| 18 | + cache: npm |
| 19 | + - name: Install dependencies |
| 20 | + run: npm install |
| 21 | + - name: Build |
| 22 | + run: npm run build |
23 | 23 |
|
24 |
| - Code-Quality: |
| 24 | + code-quality: |
25 | 25 | runs-on: macos-latest
|
26 | 26 | steps:
|
27 |
| - - uses: actions/checkout@v2 |
28 |
| - - uses: actions/setup-node@v2 |
29 |
| - with: |
30 |
| - node-version: 20 |
31 |
| - cache: npm |
32 |
| - - name: Install modules |
33 |
| - run: npm install |
34 |
| - - name: Run code quality tests |
35 |
| - run: npm run lint -- --format=compact |
| 27 | + - uses: actions/checkout@v4 |
| 28 | + - uses: actions/setup-node@v4 |
| 29 | + with: |
| 30 | + node-version: 22 |
| 31 | + cache: npm |
| 32 | + - name: Install dependencies |
| 33 | + run: npm install |
| 34 | + - name: Run code quality tests |
| 35 | + run: npm run lint |
36 | 36 |
|
37 |
| - Export-Size: |
38 |
| - runs-on: ubuntu-latest |
| 37 | + unit: |
| 38 | + runs-on: macos-latest |
39 | 39 | steps:
|
40 |
| - - uses: actions/checkout@v2 |
| 40 | + - uses: actions/checkout@v4 |
| 41 | + - uses: actions/setup-node@v4 |
41 | 42 | with:
|
42 |
| - fetch-depth: '0' |
43 |
| - - uses: titouanmathis/export-size-action@main |
| 43 | + node-version: 22 |
| 44 | + cache: npm |
| 45 | + - name: Install dependencies |
| 46 | + run: npm install |
| 47 | + - name: Run tests |
| 48 | + run: npm run test -- -- --retry=3 --coverage.enabled |
| 49 | + - name: Upload coverage to Codecov |
| 50 | + uses: codecov/codecov-action@v4 |
44 | 51 | with:
|
45 |
| - github_token: ${{ secrets.GITHUB_TOKEN }} |
46 |
| - build_script: npm run build |
47 |
| - paths: dist |
| 52 | + files: ./packages/coverage/clover.xml |
| 53 | + flags: unittests |
| 54 | + fail_ci_if_error: false |
| 55 | + verbose: true |
| 56 | + env: |
| 57 | + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
0 commit comments