|
| 1 | +name: Lint Check CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [master] |
| 6 | + |
| 7 | +jobs: |
| 8 | + lint-ubuntu-20: |
| 9 | + runs-on: ubuntu-20.04 |
| 10 | + |
| 11 | + strategy: |
| 12 | + max-parallel: 6 |
| 13 | + matrix: |
| 14 | + node-version: [10.1, 10.19, 12.1, 13.2, 14.5, 14.6, 14.15, 15.2] |
| 15 | + |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v2 |
| 18 | + with: |
| 19 | + fetch-depth: 1 |
| 20 | + ref: ${{ github.head_ref }} |
| 21 | + |
| 22 | + - name: Use Node.js ${{ matrix.node-version }} |
| 23 | + uses: actions/setup-node@v1 |
| 24 | + with: |
| 25 | + node-version: ${{ matrix.node-version }} |
| 26 | + |
| 27 | + - name: npm install |
| 28 | + working-directory: . |
| 29 | + run: npm install |
| 30 | + |
| 31 | + - name: Run Lint |
| 32 | + run: | |
| 33 | + npm run lint -- --no-fix |
| 34 | + npm run lint:css |
| 35 | +
|
| 36 | + lint-ubuntu-18: |
| 37 | + runs-on: ubuntu-18.04 |
| 38 | + |
| 39 | + strategy: |
| 40 | + max-parallel: 6 |
| 41 | + matrix: |
| 42 | + node-version: [10.1, 10.19, 12.1, 13.2, 14.5, 14.6, 14.15, 15.2] |
| 43 | + |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@v2 |
| 46 | + with: |
| 47 | + fetch-depth: 1 |
| 48 | + ref: ${{ github.head_ref }} |
| 49 | + |
| 50 | + - name: Use Node.js ${{ matrix.node-version }} |
| 51 | + uses: actions/setup-node@v1 |
| 52 | + with: |
| 53 | + node-version: ${{ matrix.node-version }} |
| 54 | + |
| 55 | + - name: npm install |
| 56 | + working-directory: . |
| 57 | + run: npm install |
| 58 | + |
| 59 | + - name: Run Lint |
| 60 | + run: | |
| 61 | + npm run lint -- --no-fix |
| 62 | + npm run lint:css |
| 63 | +
|
| 64 | + lint-windows: |
| 65 | + runs-on: windows-2019 |
| 66 | + |
| 67 | + strategy: |
| 68 | + max-parallel: 6 |
| 69 | + matrix: |
| 70 | + node-version: [10.1, 10.19, 12.1, 13.2, 14.5, 14.6, 14.15, 15.2] |
| 71 | + |
| 72 | + steps: |
| 73 | + - uses: actions/checkout@v2 |
| 74 | + with: |
| 75 | + fetch-depth: 1 |
| 76 | + ref: ${{ github.head_ref }} |
| 77 | + |
| 78 | + - name: Use Node.js ${{ matrix.node-version }} |
| 79 | + uses: actions/setup-node@v1 |
| 80 | + with: |
| 81 | + node-version: ${{ matrix.node-version }} |
| 82 | + |
| 83 | + - name: npm install |
| 84 | + working-directory: . |
| 85 | + run: npm install |
| 86 | + |
| 87 | + - name: Run Lint |
| 88 | + run: | |
| 89 | + npm run lint -- --no-fix |
| 90 | + npm run lint:css |
0 commit comments