|
1 | 1 | name: Build and check the code format
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - push: |
5 |
| - branches: |
6 |
| - - main |
7 |
| - pull_request_target: |
8 |
| - types: |
9 |
| - - opened |
10 |
| - - synchronize |
11 |
| - - reopened |
12 |
| - - edited |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + pull_request_target: |
| 8 | + types: |
| 9 | + - opened |
| 10 | + - synchronize |
| 11 | + - reopened |
| 12 | + - edited |
13 | 13 | env:
|
14 |
| - GITLAB_NPM_TOKEN: ${{secrets.GITLAB_NPM_TOKEN}} |
| 14 | + GITLAB_NPM_TOKEN: ${{secrets.GITLAB_NPM_TOKEN}} |
15 | 15 | jobs:
|
16 |
| - lint: |
17 |
| - permissions: read-all |
18 |
| - runs-on: ubuntu-latest |
19 |
| - strategy: |
20 |
| - matrix: |
21 |
| - node-version: [16.x] |
22 |
| - steps: |
23 |
| - - uses: actions/checkout@v2 |
24 |
| - with: |
25 |
| - ref: ${{ github.event.pull_request.head.sha }} |
26 |
| - - name: Use Node.js ${{ matrix.node-version }} |
27 |
| - uses: actions/setup-node@v2 |
28 |
| - with: |
29 |
| - node-version: ${{ matrix.node-version }} |
30 |
| - cache: "npm" |
31 |
| - - name: "Installing Dependencies" |
32 |
| - run: npm ci |
33 |
| - - name: "Linting" |
34 |
| - run: npm run lint |
35 |
| - - name: "Testing(Unit)" |
36 |
| - run: npm run test:unit |
37 |
| - package: |
38 |
| - strategy: |
39 |
| - matrix: |
40 |
| - include: |
41 |
| - - os: windows-latest |
42 |
| - platform: win32 |
43 |
| - arch: x64 |
44 |
| - npm_config_arch: x64 |
45 |
| - - os: windows-latest |
46 |
| - platform: win32 |
47 |
| - arch: ia32 |
48 |
| - npm_config_arch: ia32 |
49 |
| - - os: windows-latest |
50 |
| - platform: win32 |
51 |
| - arch: arm64 |
52 |
| - npm_config_arch: arm |
53 |
| - - os: ubuntu-latest |
54 |
| - platform: linux |
55 |
| - arch: x64 |
56 |
| - npm_config_arch: x64 |
57 |
| - - os: ubuntu-latest |
58 |
| - platform: linux |
59 |
| - arch: arm64 |
60 |
| - npm_config_arch: arm64 |
61 |
| - - os: ubuntu-latest |
62 |
| - platform: linux |
63 |
| - arch: armhf |
64 |
| - npm_config_arch: arm |
65 |
| - - os: ubuntu-latest |
66 |
| - platform: alpine |
67 |
| - arch: x64 |
68 |
| - npm_config_arch: x64 |
69 |
| - - os: macos-latest |
70 |
| - platform: darwin |
71 |
| - arch: x64 |
72 |
| - npm_config_arch: x64 |
73 |
| - - os: macos-latest |
74 |
| - platform: darwin |
75 |
| - arch: arm64 |
76 |
| - npm_config_arch: arm64 |
77 |
| - runs-on: ${{ matrix.os }} |
78 |
| - needs: lint |
79 |
| - env: |
80 |
| - npm_config_arch: ${{ matrix.npm_config_arch }} |
81 |
| - steps: |
82 |
| - - uses: actions/checkout@v2 |
83 |
| - with: |
84 |
| - ref: ${{ github.event.pull_request.head.sha }} |
85 |
| - - name: Use Node.js |
86 |
| - uses: actions/setup-node@v2 |
87 |
| - with: |
88 |
| - node-version: 16.x |
89 |
| - cache: "npm" |
| 16 | + lint: |
| 17 | + permissions: read-all |
| 18 | + runs-on: ubuntu-latest |
| 19 | + strategy: |
| 20 | + matrix: |
| 21 | + node-version: [16.x] |
| 22 | + steps: |
| 23 | + - uses: actions/checkout@v2 |
| 24 | + with: |
| 25 | + ref: ${{ github.event.pull_request.head.sha }} |
| 26 | + - name: Use Node.js ${{ matrix.node-version }} |
| 27 | + uses: actions/setup-node@v2 |
| 28 | + with: |
| 29 | + node-version: ${{ matrix.node-version }} |
| 30 | + cache: 'npm' |
| 31 | + - name: 'Installing Dependencies' |
| 32 | + run: npm ci |
| 33 | + - name: 'Linting' |
| 34 | + run: npm run lint |
| 35 | + - name: 'Testing(Unit)' |
| 36 | + run: npm run test:unit |
| 37 | + package: |
| 38 | + strategy: |
| 39 | + matrix: |
| 40 | + include: |
| 41 | + - os: windows-latest |
| 42 | + platform: win32 |
| 43 | + arch: x64 |
| 44 | + npm_config_arch: x64 |
| 45 | + - os: windows-latest |
| 46 | + platform: win32 |
| 47 | + arch: ia32 |
| 48 | + npm_config_arch: ia32 |
| 49 | + - os: windows-latest |
| 50 | + platform: win32 |
| 51 | + arch: arm64 |
| 52 | + npm_config_arch: arm |
| 53 | + - os: ubuntu-latest |
| 54 | + platform: linux |
| 55 | + arch: x64 |
| 56 | + npm_config_arch: x64 |
| 57 | + - os: ubuntu-latest |
| 58 | + platform: linux |
| 59 | + arch: arm64 |
| 60 | + npm_config_arch: arm64 |
| 61 | + - os: ubuntu-latest |
| 62 | + platform: linux |
| 63 | + arch: armhf |
| 64 | + npm_config_arch: arm |
| 65 | + - os: ubuntu-latest |
| 66 | + platform: alpine |
| 67 | + arch: x64 |
| 68 | + npm_config_arch: x64 |
| 69 | + - os: macos-latest |
| 70 | + platform: darwin |
| 71 | + arch: x64 |
| 72 | + npm_config_arch: x64 |
| 73 | + - os: macos-latest |
| 74 | + platform: darwin |
| 75 | + arch: arm64 |
| 76 | + npm_config_arch: arm64 |
| 77 | + runs-on: ${{ matrix.os }} |
| 78 | + needs: lint |
| 79 | + env: |
| 80 | + npm_config_arch: ${{ matrix.npm_config_arch }} |
| 81 | + steps: |
| 82 | + - uses: actions/checkout@v2 |
| 83 | + with: |
| 84 | + ref: ${{ github.event.pull_request.head.sha }} |
| 85 | + - name: Use Node.js |
| 86 | + uses: actions/setup-node@v2 |
| 87 | + with: |
| 88 | + node-version: 16.x |
| 89 | + cache: 'npm' |
90 | 90 |
|
91 |
| - - name: "Installing Dependencies" |
92 |
| - run: npm ci |
| 91 | + - name: 'Installing Dependencies' |
| 92 | + run: npm ci |
93 | 93 |
|
94 |
| - - name: Building |
95 |
| - run: npm run package -- --env CLIENTID=${{ secrets.OAUTHCLIENTID }} --env CLIENTSECRET=${{ secrets.OAUTHCLIENTSECRET }} && npm run ui:package |
| 94 | + - name: Building |
| 95 | + run: npm run package -- --env CLIENTID=${{ secrets.OAUTHCLIENTID }} --env CLIENTSECRET=${{ secrets.OAUTHCLIENTSECRET }} && npm run ui:package |
96 | 96 |
|
97 |
| - - name: "Versioning" |
98 |
| - id: version |
99 |
| - shell: bash |
100 |
| - run: echo "VERSION=1.0.0-beta.$(date +%s)" >> $GITHUB_OUTPUT |
| 97 | + - name: 'Versioning' |
| 98 | + id: version |
| 99 | + shell: bash |
| 100 | + run: echo "VERSION=1.0.0-beta.$(date +%s)" >> $GITHUB_OUTPUT |
101 | 101 |
|
102 |
| - - id: targeting |
103 |
| - name: Targeting |
104 |
| - shell: pwsh |
105 |
| - run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_OUTPUT |
| 102 | + - id: targeting |
| 103 | + name: Targeting |
| 104 | + shell: pwsh |
| 105 | + run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_OUTPUT |
106 | 106 |
|
107 |
| - - name: Packaging |
108 |
| - id: packaging |
109 |
| - run: | |
110 |
| - npx @vscode/vsce package --pre-release --target ${{ steps.targeting.outputs.target }} --no-update-package-json --no-git-tag-version ${{ steps.version.outputs.VERSION }} |
111 |
| - - uses: actions/upload-artifact@v2 |
112 |
| - with: |
113 |
| - name: ${{ steps.targeting.outputs.target }} |
114 |
| - path: "*.vsix" |
| 107 | + - name: Packaging |
| 108 | + id: packaging |
| 109 | + run: | |
| 110 | + npx @vscode/vsce package --pre-release --target ${{ steps.targeting.outputs.target }} --no-update-package-json --no-git-tag-version ${{ steps.version.outputs.VERSION }} |
| 111 | + - uses: actions/upload-artifact@v2 |
| 112 | + with: |
| 113 | + name: ${{ steps.targeting.outputs.target }} |
| 114 | + path: '*.vsix' |
0 commit comments