|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + pull_request: {} |
| 8 | + |
| 9 | +permissions: |
| 10 | + actions: read |
| 11 | + contents: read |
| 12 | + |
| 13 | +concurrency: |
| 14 | + group: ${{ github.workflow }}-${{ github.event.number || github.sha }} |
| 15 | + cancel-in-progress: true |
| 16 | + |
| 17 | +jobs: |
| 18 | + install: |
| 19 | + runs-on: ubuntu-latest |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v4 |
| 22 | + with: |
| 23 | + fetch-depth: 0 |
| 24 | + - uses: actions/setup-node@v4 |
| 25 | + with: |
| 26 | + node-version-file: .nvmrc |
| 27 | + cache: 'yarn' |
| 28 | + cache-dependency-path: 'yarn.lock' |
| 29 | + - run: yarn --frozen-lockfile --non-interactive |
| 30 | + |
| 31 | + lint-affected: |
| 32 | + runs-on: ubuntu-latest |
| 33 | + needs: install |
| 34 | + steps: |
| 35 | + - uses: actions/checkout@v4 |
| 36 | + with: |
| 37 | + fetch-depth: 0 |
| 38 | + - uses: actions/setup-node@v4 |
| 39 | + with: |
| 40 | + node-version-file: .nvmrc |
| 41 | + cache: 'yarn' |
| 42 | + cache-dependency-path: 'yarn.lock' |
| 43 | + - run: yarn --frozen-lockfile --non-interactive |
| 44 | + - uses: nrwl/nx-set-shas@v4 |
| 45 | + - run: yarn nx affected -t lint |
| 46 | + |
| 47 | + test-affected: |
| 48 | + runs-on: ubuntu-latest |
| 49 | + needs: install |
| 50 | + steps: |
| 51 | + - uses: actions/checkout@v4 |
| 52 | + with: |
| 53 | + fetch-depth: 0 |
| 54 | + - uses: actions/setup-node@v4 |
| 55 | + with: |
| 56 | + node-version-file: .nvmrc |
| 57 | + cache: 'yarn' |
| 58 | + cache-dependency-path: 'yarn.lock' |
| 59 | + - run: yarn --frozen-lockfile --non-interactive |
| 60 | + - uses: nrwl/nx-set-shas@v4 |
| 61 | + - run: yarn nx affected -t test |
| 62 | + |
| 63 | + e2e-affected: |
| 64 | + runs-on: ubuntu-latest |
| 65 | + needs: install |
| 66 | + steps: |
| 67 | + - uses: actions/checkout@v4 |
| 68 | + with: |
| 69 | + fetch-depth: 0 |
| 70 | + - uses: actions/setup-node@v4 |
| 71 | + with: |
| 72 | + node-version-file: .nvmrc |
| 73 | + cache: 'yarn' |
| 74 | + cache-dependency-path: 'yarn.lock' |
| 75 | + - run: yarn --frozen-lockfile --non-interactive |
| 76 | + - uses: nrwl/nx-set-shas@v4 |
| 77 | + - run: yarn nx affected -t e2e --exclude=docs-app |
| 78 | + |
| 79 | + build-affected: |
| 80 | + runs-on: ubuntu-latest |
| 81 | + needs: install |
| 82 | + steps: |
| 83 | + - uses: actions/checkout@v4 |
| 84 | + with: |
| 85 | + fetch-depth: 0 |
| 86 | + - uses: actions/setup-node@v4 |
| 87 | + with: |
| 88 | + node-version-file: .nvmrc |
| 89 | + cache: 'yarn' |
| 90 | + cache-dependency-path: 'yarn.lock' |
| 91 | + - run: yarn --frozen-lockfile --non-interactive |
| 92 | + - uses: nrwl/nx-set-shas@v4 |
| 93 | + - run: yarn nx affected -t build |
| 94 | + |
| 95 | + schematics-core-check: |
| 96 | + runs-on: ubuntu-latest |
| 97 | + needs: install |
| 98 | + steps: |
| 99 | + - uses: actions/checkout@v4 |
| 100 | + with: |
| 101 | + fetch-depth: 0 |
| 102 | + - uses: actions/setup-node@v4 |
| 103 | + with: |
| 104 | + node-version-file: .nvmrc |
| 105 | + cache: 'yarn' |
| 106 | + cache-dependency-path: 'yarn.lock' |
| 107 | + - run: yarn --frozen-lockfile --non-interactive |
| 108 | + - uses: nrwl/nx-set-shas@v4 |
| 109 | + - run: yarn copy:schematics |
| 110 | + - run: yarn schematics:check |
0 commit comments