-
Notifications
You must be signed in to change notification settings - Fork 0
109 lines (89 loc) · 2.39 KB
/
Copy pathbuild.yml
File metadata and controls
109 lines (89 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Build
on:
push:
branches: [master]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
# Validate Conventional Commits
validateCommits:
name: Validate Commits
runs-on: ubuntu-latest
steps:
# Check out the current repository
- name: Fetch Sources
uses: actions/checkout@v7
# Validate Conventional Commits
- name: Validate Conventional Commits
uses: wagoid/commitlint-github-action@v5
# Run ESLint Check
lint:
name: Lint Check
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install Dependencies
run: npm ci
- name: Run Lint Check
run: npm run lint
# Run Prettier Formatting Check
prettier:
name: Prettier Check
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install Dependencies
run: npm ci
- name: Run Prettier Check
run: npm run format:check
# Run Dependency Audit Check
audit:
name: Audit Check
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
- name: Run Audit Check
run: npm audit
# Build and package extension
buildExtension:
name: Build Extension
needs: [validateCommits, lint, prettier, audit]
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Fetch Sources
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install Dependencies
run: npm ci
- name: Compile Extension
run: npm run compile
- name: Package VSIX
run: npx @vscode/vsce package --no-yarn --out parable-workspaces.vsix
- name: Upload VSIX Artifact
if: github.event_name == 'push'
uses: actions/upload-artifact@v7
with:
name: vscode-extension-vsix
path: parable-workspaces.vsix