|
1 | 1 | name: ci |
2 | 2 | on: |
3 | | - - push |
4 | | - - pull_request |
| 3 | + push: |
| 4 | + paths-ignore: |
| 5 | + - '**.md' |
| 6 | + pull_request: |
| 7 | + paths-ignore: |
| 8 | + - '**.md' |
5 | 9 | env: |
6 | 10 | FORCE_COLOR: 3 |
7 | 11 | concurrency: |
8 | | - group: ${{ github.ref }} |
9 | | - # Never cancel builds on master. This way, we can more easily figure out |
10 | | - # which build/commit broke it. |
11 | | - # cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} |
12 | | - cancel-in-progress: true |
| 12 | + group: ${{ github.ref_name }} |
| 13 | + # Only cancel concurrent builds when we are not on the default branch. This |
| 14 | + # way, if a commit breaks the default branch, we can more easily determine |
| 15 | + # which commit caused the failure. |
| 16 | + cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }} |
13 | 17 | jobs: |
14 | | - ci-cd: |
15 | | - name: CI/CD |
| 18 | + ci: |
| 19 | + name: CI |
| 20 | + # Skip building tags; an identical job for the commit to which the tag |
| 21 | + # points will be triggered anyway. |
| 22 | + if: github.ref_type != 'tag' |
16 | 23 | runs-on: ubuntu-latest |
17 | 24 | steps: |
18 | | - # - name: Cancel Previous Runs |
19 | | - # uses: styfle/cancel-workflow-action@0.9.1 |
20 | | - # with: |
21 | | - # access_token: ${{ github.token }} |
22 | | - |
23 | 25 | - name: Clone Repository |
24 | | - uses: actions/checkout@v2 |
| 26 | + uses: actions/checkout@v3 |
25 | 27 | with: |
26 | 28 | fetch-depth: 0 |
27 | | - |
28 | | - - name: Set Up Node |
29 | | - uses: actions/setup-node@v2 |
| 29 | + - name: Setup Node |
| 30 | + uses: actions/setup-node@v3 |
30 | 31 | with: |
31 | | - node-version: 16 |
| 32 | + node-version: 18 |
32 | 33 | cache: npm |
33 | | - |
34 | 34 | - name: Install Dependencies |
35 | | - run: npm ci |
36 | | - |
| 35 | + run: npm clean-install --ignore-scripts |
37 | 36 | - name: Build Project |
38 | 37 | run: npx nr build |
39 | | - |
40 | 38 | - name: Run Unit Tests |
41 | 39 | run: npx nr test.coverage |
42 | | - |
43 | 40 | - name: Upload Coverage Report |
44 | | - run: bash <(curl -s https://codecov.io/bash) |
| 41 | + uses: codecov/codecov-action@v3 |
0 commit comments