Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7e0088a

Browse filesBrowse files
author
Akos Kitta
committed
Set up CI.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent a69bd24 commit 7e0088a
Copy full SHA for 7e0088a

File tree

Expand file treeCollapse file tree

5 files changed

+54
-5
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+54
-5
lines changed

‎.github/workflows/build.yml

Copy file name to clipboard
+47Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: VS Code Arduino Language Server
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
pull_request:
9+
branches:
10+
- master
11+
schedule:
12+
- cron: '0 2 * * *' # run every day at 2AM
13+
14+
jobs:
15+
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
22+
- name: Install Node.js 12.x
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: '12.x'
26+
registry-url: 'https://registry.npmjs.org'
27+
28+
- name: Build VS Code Extension
29+
run: |
30+
yarn
31+
32+
- name: Upload VS Code Extension [GitHub Actions]
33+
uses: actions/upload-artifact@v2
34+
with:
35+
name: build-artifacts
36+
path: electron/build/dist/build-artifacts/
37+
38+
- name: Upload VS Code Extension [S3]
39+
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master')
40+
uses: docker://plugins/s3
41+
env:
42+
PLUGIN_SOURCE: "build-artifacts/*"
43+
PLUGIN_STRIP_PREFIX: "build-artifacts/"
44+
PLUGIN_TARGET: "/vscode-arduino-language-server/nightly"
45+
PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }}
46+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
47+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

‎.gitignore

Copy file name to clipboardExpand all lines: .gitignore
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ node_modules/
22
lib/
33
bin/
44
dist/
5-
*.zip
6-
*.vsix
5+
build-artifacts/

‎.vscodeignore

Copy file name to clipboardExpand all lines: .vscodeignore
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ dist/**/*.map
55
node_modules/
66
**/tsconfig.json
77
yarn.lock
8-
*.zip
8+
.github/
9+
.vscode/
10+
yarn.lock

‎package.json

Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"compile": "tsc -p ./",
1717
"watch": "tsc -w -p ./",
1818
"webpack": "webpack --config ./configs/webpack.config.js",
19-
"package": "vsce package"
19+
"package": "vsce package --out ./build-artifacts"
2020
},
2121
"repository": {
2222
"type": "git",

‎tsconfig.json

Copy file name to clipboardExpand all lines: tsconfig.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"skipLibCheck": true
2121
},
2222
"exclude": [
23-
"node_modules"
23+
"./node_modules",
24+
"./lib/**/*"
2425
]
2526
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.