Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 37be4dd

Browse files
committed
Merge branch 'dev' into ClearOutputOnBuild
2 parents dbcb13b + 67c0ee1 commit 37be4dd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+7949
-3148
lines changed

.ackrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--ignore-dir=out
2+
--ignore-dir=.vscode-test

.eslintrc.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
env:
2+
browser: true
3+
es6: true
4+
extends:
5+
- 'eslint:recommended'
6+
- 'plugin:react/recommended'
7+
- 'plugin:@typescript-eslint/eslint-recommended'
8+
globals:
9+
Atomics: readonly
10+
SharedArrayBuffer: readonly
11+
parser: '@typescript-eslint/parser'
12+
parserOptions:
13+
ecmaFeatures:
14+
jsx: true
15+
ecmaVersion: 2018
16+
sourceType: module
17+
plugins:
18+
- react
19+
- '@typescript-eslint'
20+
rules: {
21+
"no-empty": ["error", { "allowEmptyCatch": true }],
22+
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }]
23+
}
24+

.github/workflows/build.yml

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
4+
name: CI
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
- dev
11+
tags:
12+
- v*
13+
pull_request:
14+
branches:
15+
- master
16+
- dev
17+
18+
jobs:
19+
build:
20+
runs-on: ${{ matrix.os }}
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
os: [ ubuntu-latest, macos-latest, windows-latest ]
25+
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v2
29+
30+
# Node 14 matches the version of Node used by VS Code when this was
31+
# written, but it should be updated when VS Code updates its Node version.
32+
# Node needs to be installed before OS-specific setup so that we can run
33+
# the hash verification script.
34+
- name: Use Node 14.x
35+
uses: actions/setup-node@v2
36+
with:
37+
node-version: 14.x
38+
39+
- name: Windows setup
40+
if: ${{ matrix.os == 'windows-latest' }}
41+
run: |
42+
curl -LO https://downloads.arduino.cc/arduino-1.8.19-windows.zip
43+
node build/checkHash.js arduino-1.8.19-windows.zip `
44+
c704a821089eab2588f1deae775916219b1517febd1dd574ff29958dca873945
45+
7z x arduino-1.8.19-windows.zip -o"$Env:TEMP\arduino-ide"
46+
echo "$Env:TEMP\arduino-ide\arduino-1.8.19" | Out-File -FilePath $env:GITHUB_PATH -Append
47+
- name: Linux setup
48+
if: ${{ matrix.os == 'ubuntu-latest' }}
49+
run: |
50+
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0
51+
sleep 3
52+
wget https://downloads.arduino.cc/arduino-1.8.19-linux64.tar.xz -P /home/$USER
53+
node build/checkHash.js /home/$USER/arduino-1.8.19-linux64.tar.xz \
54+
eb68bddc1d1c0120be2fca1350a03ee34531cf37f51847b21210b6e70545bc9b
55+
tar -xvf /home/$USER/arduino-1.8.19-linux64.tar.xz -C /home/$USER/
56+
sudo ln -s /home/$USER/arduino-1.8.19/arduino /usr/bin/arduino
57+
sudo apt-get update
58+
sudo apt-get install -y g++-multilib build-essential libudev-dev
59+
- name: macOS setup
60+
if: ${{ matrix.os == 'macos-latest' }}
61+
run: |
62+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
63+
brew install arduino --cask
64+
65+
# Windows agents already have gulp installed.
66+
- name: Install gulp
67+
if: ${{ matrix.os != 'windows-latest' }}
68+
run: npm install --global gulp
69+
- name: Install global dependencies
70+
run: npm install --global node-gyp vsce
71+
- name: Install project dependencies
72+
run: npm install
73+
74+
- name: Check for linting errors
75+
run: gulp tslint
76+
- name: Build and pack extension
77+
run: vsce package --out vscode-arduino.vsix
78+
- name: Publish extension VSIX as artifact
79+
uses: actions/upload-artifact@v2
80+
with:
81+
name: VS Code extension VSIX (${{ matrix.os }})
82+
path: vscode-arduino.vsix
83+
84+
- name: Run tests
85+
uses: GabrielBB/xvfb-action@v1
86+
with:
87+
run: npm test --silent

.github/workflows/remove-labels.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Remove labels from closed issues
2+
3+
on:
4+
issues:
5+
types:
6+
- closed
7+
8+
jobs:
9+
label_issues:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Remove labels
13+
uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90
14+
with:
15+
remove-labels: triage, needs-more-info

.github/workflows/stale-issues.yml

+16-12
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
1-
name: Mark stale issues and close them
1+
name: Label and close stale issues
22

33
on:
44
schedule:
55
- cron: "0 * * * *"
6+
workflow_dispatch:
67

78
jobs:
89
stale:
9-
1010
runs-on: ubuntu-latest
11-
1211
steps:
13-
- uses: blackchoey/stale@releases/v1.2
12+
- uses: actions/stale@v4.1.0
1413
with:
15-
repo-token: ${{ secrets.GITHUB_TOKEN }}
16-
stale-issue-message: 'This issue has been automatically marked as stale because it has no recent activities. It will be closed if no further activity occurs within 3 days. Thank you for your contributions.'
17-
stale-issue-label: 'stale'
18-
days-before-stale: 7
19-
only-labels: 'need more info'
20-
last-updated-user-type: 'collaborator'
21-
days-before-close: 3
22-
operations-per-run: 150
14+
days-before-stale: 30
15+
days-before-close: 7
16+
stale-issue-message: >-
17+
This issue has been automatically marked as stale because it has been
18+
inactive for 30 days. To reactivate the issue, simply post a comment
19+
with the requested information to help us diagnose this issue. If this
20+
issue remains inactive for another 7 days, it will be automatically
21+
closed.
22+
close-issue-message: >-
23+
This issue has been automatically closed due to inactivity. If you are
24+
still experiencing problems, please open a new issue.
25+
stale-issue-label: stale
26+
only-labels: needs-more-info

.github/workflows/triage-issues.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Label new issues
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- reopened
8+
9+
jobs:
10+
label_issues:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Add triage label
14+
uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90
15+
with:
16+
add-labels: triage

.travis.yml

-89
This file was deleted.

.vscode/tasks.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"tasks": [
1616
{
1717
"label": "build",
18-
"args": [],
18+
"args": ["build"],
1919
"type": "shell",
2020
"group": "build",
2121
"isBackground": false,
@@ -25,7 +25,7 @@
2525
},
2626
{
2727
"label": "build_without_view",
28-
"args": [],
28+
"args": ["build_without_view"],
2929
"group": "build",
3030
"isBackground": false,
3131
"problemMatcher": [

.vscodeignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ gulpfile.js
1515
*.log
1616
webpack.config.js
1717
node_modules/**
18-
vendor/**
18+
vendor/**
19+
azure-pipelines.yml
20+
build/**

0 commit comments

Comments
 (0)