|
1 | 1 | name: 🛠️ Builds |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: |
6 | | - - '*' |
7 | | - pull_request: |
8 | | - branches: |
9 | | - - master |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - '*' |
| 7 | + pull_request: |
| 8 | + branches: |
| 9 | + - master |
10 | 10 |
|
11 | 11 | concurrency: |
12 | | - group: ${{ github.workflow }}-${{ github.ref }} |
13 | | - cancel-in-progress: true |
| 12 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 13 | + cancel-in-progress: true |
14 | 14 |
|
15 | 15 | jobs: |
16 | | - build: |
17 | | - strategy: |
18 | | - matrix: |
19 | | - os: [macos-latest, ubuntu-latest, windows-latest] |
20 | | - runs-on: ${{ matrix.os }} |
21 | | - steps: |
22 | | - - name: Checkout |
23 | | - uses: actions/checkout@v4 |
24 | | - |
25 | | - - name: Install Node.js |
26 | | - uses: actions/setup-node@v4 |
27 | | - with: |
28 | | - node-version: 18.x |
29 | | - |
30 | | - - name: Run npm install |
31 | | - run: npm install |
32 | | - |
33 | | - - name: Run pretest |
34 | | - run: xvfb-run -a npm run pretest |
35 | | - if: runner.os == 'Linux' |
36 | | - |
37 | | - - name: Run pretest |
38 | | - run: npm run pretest |
39 | | - if: runner.os != 'Linux' |
40 | | - |
41 | | - - name: Run vsce package |
42 | | - run: mkdir -p out/vsix && npm exec vsce package -- -o out/vsix/ |
43 | | - |
44 | | - - name: Upload artifact |
45 | | - if: runner.os == 'Linux' |
46 | | - uses: actions/upload-artifact@v4 |
47 | | - with: |
48 | | - name: ${{ github.event.repository.name }} |
49 | | - path: | |
50 | | - ${{ github.workspace }}/out/vsix/ |
| 16 | + build: |
| 17 | + strategy: |
| 18 | + matrix: |
| 19 | + os: [macos-latest, ubuntu-latest, windows-latest] |
| 20 | + runs-on: ${{ matrix.os }} |
| 21 | + steps: |
| 22 | + - name: Checkout |
| 23 | + uses: actions/checkout@v4 |
| 24 | + |
| 25 | + - name: Install Node.js |
| 26 | + uses: actions/setup-node@v4 |
| 27 | + with: |
| 28 | + node-version: 18.x |
| 29 | + |
| 30 | + - name: Run npm install |
| 31 | + run: npm install |
| 32 | + |
| 33 | + - name: Run pretest |
| 34 | + run: xvfb-run -a npm run pretest |
| 35 | + if: runner.os == 'Linux' |
| 36 | + |
| 37 | + - name: Run pretest |
| 38 | + run: npm run pretest |
| 39 | + if: runner.os != 'Linux' |
| 40 | + |
| 41 | + - name: Run vsce package |
| 42 | + run: mkdir -p out/vsix && npm exec vsce package -- -o out/vsix/ |
| 43 | + |
| 44 | + - name: Upload artifact |
| 45 | + if: runner.os == 'Linux' |
| 46 | + uses: actions/upload-artifact@v4 |
| 47 | + with: |
| 48 | + name: ${{ github.event.repository.name }} |
| 49 | + path: | |
| 50 | + ${{ github.workspace }}/out/vsix/ |
0 commit comments