|
14 | 14 | - cron: "0 9 * * 1" |
15 | 15 |
|
16 | 16 | jobs: |
17 | | - engines: |
18 | | - name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }} |
19 | | - if: github.repository_owner == 'npm' |
20 | | - strategy: |
21 | | - fail-fast: false |
22 | | - matrix: |
23 | | - platform: |
24 | | - - name: Linux |
25 | | - os: ubuntu-latest |
26 | | - shell: bash |
27 | | - node-version: |
28 | | - - 10.0.0 |
29 | | - - 12.0.0 |
30 | | - - 14.0.0 |
31 | | - - 16.0.0 |
32 | | - - 18.0.0 |
33 | | - runs-on: ${{ matrix.platform.os }} |
34 | | - defaults: |
35 | | - run: |
36 | | - shell: ${{ matrix.platform.shell }} |
37 | | - steps: |
38 | | - - name: Support Long Paths |
39 | | - if: matrix.platform.os == 'windows-latest' |
40 | | - run: git config --system core.longpaths true |
41 | | - - name: Checkout |
42 | | - uses: actions/checkout@v3 |
43 | | - - name: Setup Git User |
44 | | - run: | |
45 | | - git config --global user.email "npm-cli+bot@github.com" |
46 | | - git config --global user.name "npm CLI robot" |
47 | | - - name: Setup Node |
48 | | - uses: actions/setup-node@v3 |
49 | | - with: |
50 | | - node-version: ${{ matrix.node-version }} |
51 | | - - name: Update Windows npm |
52 | | - # node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows |
53 | | - if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12.') || startsWith(matrix.node-version, '14.')) |
54 | | - run: | |
55 | | - curl -sO https://registry.npmjs.org/npm/-/npm-7.5.4.tgz |
56 | | - tar xf npm-7.5.4.tgz |
57 | | - cd package |
58 | | - node lib/npm.js install --no-fund --no-audit -g ..\npm-7.5.4.tgz |
59 | | - cd .. |
60 | | - rmdir /s /q package |
61 | | - - name: Install npm@7 |
62 | | - if: startsWith(matrix.node-version, '10.') || startsWith(matrix.node-version, '12.') |
63 | | - run: npm i --prefer-online --no-fund --no-audit -g npm@7 |
64 | | - - name: Install npm@latest |
65 | | - if: ${{ !startsWith(matrix.node-version, '10.') && !startsWith(matrix.node-version, '12.') }} |
66 | | - run: npm i --prefer-online --no-fund --no-audit -g npm@latest |
67 | | - - name: npm Version |
68 | | - run: npm -v |
69 | | - - name: Install Dependencies |
70 | | - run: npm i --ignore-scripts --no-audit --no-fund --engines-strict |
71 | | - |
72 | 17 | lint: |
73 | 18 | name: Lint |
74 | 19 | if: github.repository_owner == 'npm' |
|
0 commit comments