-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
285 additions
and
1,611 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: build | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
GOPATH: /tmp/go | ||
# Because some tests require explicit setting of GOPATH. TODO: FIX THEM. | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.os }} ${{ matrix.version }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
if: "!contains(github.event.head_commit.message, 'SKIP CI')" | ||
timeout-minutes: 20 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
version: ['stable'] | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.x' | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: '1.14' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Compile | ||
run: npm run vscode:prepublish | ||
|
||
- name: Install Go tools (Modules mode) | ||
run: | | ||
go version | ||
go get github.com/acroca/go-symbols \ | ||
github.com/davidrjenni/reftools/cmd/fillstruct \ | ||
github.com/haya14busa/goplay/cmd/goplay \ | ||
github.com/mdempsky/gocode \ | ||
github.com/sqs/goreturns \ | ||
github.com/uudashr/gopkgs/v2/cmd/gopkgs \ | ||
github.com/zmb3/gogetdoc \ | ||
golang.org/x/lint/golint \ | ||
golang.org/x/tools/cmd/gorename | ||
env: | ||
GO111MODULE: on | ||
|
||
- name: Install Go tools (GOPATH mode) | ||
run: | | ||
go version | ||
go get github.com/cweill/gotests/... \ | ||
github.com/rogpeppe/godef \ | ||
github.com/ramya-rao-a/go-outline | ||
# Because some tests depend on the source code checked in GOPATH. TODO: FIX THEM. | ||
env: | ||
GO111MODULE: off | ||
|
||
- name: Run unit tests | ||
run: npm run unit-test | ||
continue-on-error: true | ||
|
||
- name: Run tests | ||
uses: GabrielBB/[email protected] | ||
with: | ||
run: npm run test | ||
env: | ||
CODE_VERSION: ${{ matrix.version }} | ||
continue-on-error: ${{ matrix.version == 'insiders' }} | ||
|
||
eslint: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'SKIP CI')" | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.x' | ||
|
||
- name: Install Dependencies | ||
run: 'npm install --frozen-lockfile' | ||
shell: bash | ||
|
||
- name: Lint check | ||
run: npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ language: go | |
dist: bionic | ||
|
||
go: | ||
- 1.11.x | ||
- 1.12.x | ||
- 1.13.x | ||
- 1.14.x | ||
- tip | ||
|
||
git: | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: "vscode-go" | ||
description: | ||
"Fork of github.com/Microsoft/vscode-go (the VSCode plugin for Go). " | ||
"This fork is kept in sync with the upstream while includes " | ||
"new features [email protected] team is developing and experimenting. " | ||
"" | ||
|
||
third_party { | ||
url { | ||
type: GIT | ||
value: "https://github.com/Microsoft/vscode-go" | ||
} | ||
version: "master" | ||
last_upgrade_date { year: 2020 month: 1 day: 8 } | ||
license_type: NOTICE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
steps: | ||
- name: 'gcr.io/cloud-builders/docker' | ||
args: ['build', '-t', 'gcr.io/$PROJECT_ID/vscode-test-env', '-f', 'build/Dockerfile', '.'] | ||
images: | ||
- 'gcr.io/$PROJECT_ID/vscode-test-env' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
steps: | ||
- name: 'gcr.io/$PROJECT_ID/vscode-test-env' | ||
entrypoint: "./build/all.bash" | ||
args: ['ci'] | ||
env: | ||
- 'BUILD=$BUILD_ID' | ||
- 'PROJECT=$PROJECT_ID' | ||
- 'REV=$REVISION_ID' | ||
timeout: 600s |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.