|
1 | | -on: pull_request |
2 | | -name: Lint npm packages on pull request |
3 | | -jobs: |
4 | | - npmLint: |
5 | | - name: npm lint |
6 | | - runs-on: ubuntu-latest |
7 | | - steps: |
8 | | - - name: Checkout latest code |
9 | | - uses: actions/checkout@v2 |
10 | | - - name: Cache node modules |
11 | | - id: cache-nodemodules |
12 | | - uses: actions/cache@v3 |
13 | | - env: |
14 | | - cache-name: ${{ github.event.repository.name }} |
15 | | - with: |
16 | | - # caching node_modules |
17 | | - path: node_modules |
18 | | - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} |
19 | | - restore-keys: | |
20 | | - ${{ runner.os }}-build-${{ env.cache-name }}- |
| 1 | +# on: pull_request |
| 2 | +# name: Lint npm packages on pull request |
| 3 | +# jobs: |
| 4 | +# npmLint: |
| 5 | +# name: npm lint |
| 6 | +# runs-on: ubuntu-latest |
| 7 | +# steps: |
| 8 | +# - name: Checkout latest code |
| 9 | +# uses: actions/checkout@v2 |
| 10 | +# - name: Cache node modules |
| 11 | +# id: cache-nodemodules |
| 12 | +# uses: actions/cache@v3 |
| 13 | +# env: |
| 14 | +# cache-name: ${{ github.event.repository.name }} |
| 15 | +# with: |
| 16 | +# # caching node_modules |
| 17 | +# path: node_modules |
| 18 | +# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} |
| 19 | +# restore-keys: | |
| 20 | +# ${{ runner.os }}-build-${{ env.cache-name }}- |
21 | 21 |
|
22 | | - - name: Run npm install |
23 | | - if: steps.cache-nodemodules.outputs.cache-hit != 'true' |
24 | | - run: npm ci --ignore-scripts |
| 22 | +# - name: Run npm install |
| 23 | +# if: steps.cache-nodemodules.outputs.cache-hit != 'true' |
| 24 | +# run: npm ci --ignore-scripts |
25 | 25 |
|
26 | | - - name: Install Lerna |
27 | | - run: npm i -g [email protected] --ignore-scripts |
| 26 | +# - name: Install Lerna |
| 27 | +# run: npm i -g [email protected] --ignore-scripts |
28 | 28 |
|
29 | | - - name: Bootstrap Monorepo |
30 | | - run: lerna bootstrap --ignore-scripts |
| 29 | +# - name: Bootstrap Monorepo |
| 30 | +# run: lerna bootstrap --ignore-scripts |
31 | 31 |
|
32 | | - - name: Run test |
33 | | - run: lerna run test |
| 32 | +# - name: Run test |
| 33 | +# run: lerna run test |
0 commit comments