.github/workflows: remove macos-latest from test-long.yml
The macos builder seems stuck during test and even fails
to flush out the test logs. Remove from test-long.yml
that's run for every push.
This cl temporarily adds test-long-all.yml that runs the
full tests (including both stable/insiders, linux, mac,
and windows, and VSCODEGO_BEFORE_RELEASE_TESTS tests) daily.
Change-Id: Ic2e1f3dd3b6a8ac1bff438e6ea605a526e521b87
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/292704
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 0e98de8..420153e 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -108,5 +108,4 @@
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
-# TODO: check if the commit is in green state. (test-long.yml results)
-# TODO: after publishing, create a gerrit CL to update 'latest' branch if VERSION is for a stable version.
+# TODO: check if the commit is in green state. (test-long.yml results)
\ No newline at end of file
diff --git a/.github/workflows/test-long-all.yml b/.github/workflows/test-long-all.yml
new file mode 100644
index 0000000..47fa80f
--- /dev/null
+++ b/.github/workflows/test-long-all.yml
@@ -0,0 +1,80 @@
+name: Daily Build Status
+
+on:
+ schedule:
+ - cron: "0 11 * * *" # 11 UTC, everyday
+
+jobs:
+ build:
+ name: ${{ matrix.os }} ${{ matrix.version }} ${{ matrix.go }}
+ runs-on: ${{ matrix.os }}
+
+ # Only in the official repository.
+ if: github.repository == 'golang/vscode-go'
+ timeout-minutes: 20
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, windows-latest, macos-latest]
+ version: ['stable', 'insiders']
+ go: ['1.15', '1.16.0-rc1']
+
+ steps:
+ - name: Clone repository
+ uses: actions/checkout@v2
+
+ - name: Setup Node
+ uses: actions/setup-node@v1
+ with:
+ node-version: '10.x'
+
+ - name: Setup Go
+ uses: actions/setup-go@v2
+ with:
+ go-version: ${{ matrix.go }}
+ stable: '!contains(${{ matrix.go }}, "beta") && !contains(${{ matrix.go }}, "rc")'
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Compile
+ run: npm run vscode:prepublish
+
+ - name: Install Go tools (Modules mode)
+ run: |
+ go version
+ go get github.com/acroca/go-symbols
+ go get github.com/davidrjenni/reftools/cmd/fillstruct
+ go get github.com/haya14busa/goplay/cmd/goplay
+ # Install two versions of gocode (one as gocode-gomod)
+ go get github.com/stamblerre/gocode
+ mv "${HOME}/go/bin/gocode${{env.EXT}}" "${HOME}/go/bin/gocode-gomod${{env.EXT}}"
+ go get github.com/mdempsky/gocode
+ go get github.com/sqs/goreturns
+ go get github.com/uudashr/gopkgs/v2/cmd/gopkgs
+ go get github.com/zmb3/gogetdoc
+ go get golang.org/x/lint/golint
+ go get golang.org/x/tools/cmd/gorename
+ go get golang.org/x/tools/gopls
+ go get github.com/cweill/gotests/...
+ go get github.com/rogpeppe/godef
+ go get github.com/ramya-rao-a/go-outline
+ go get github.com/go-delve/delve/cmd/dlv
+ env:
+ GO111MODULE: on
+ EXT: "${{ matrix.os == 'windows-latest' && '.exe' || ''}}"
+
+ - name: Run unit tests
+ run: npm run unit-test
+
+ - name: Run tests
+ uses: GabrielBB/xvfb-action@v1.0
+ with:
+ run: npm run test
+ env:
+ CODE_VERSION: ${{ matrix.version }}
+ VSCODEGO_BEFORE_RELEASE_TESTS: true
+
+ - name: Lint check
+ run: npm run lint
+ if: ${{ matrix.os }} == 'ubuntu-latest' && ${{ matrix.version }} == 'stable' && !contains(${{ matrix.go }}, "beta") && !contains(${{ matrix.go }}, "rc")
diff --git a/.github/workflows/test-long.yml b/.github/workflows/test-long.yml
index dc0afaf..b4d44cf 100644
--- a/.github/workflows/test-long.yml
+++ b/.github/workflows/test-long.yml
@@ -1,10 +1,6 @@
name: Long Tests
-on:
- push:
- branches-ignore:
- - 'latest'
- - 'upstream'
+on: [push]
jobs:
build:
@@ -18,7 +14,7 @@
strategy:
fail-fast: false
matrix:
- os: [ubuntu-latest, windows-latest, macos-latest]
+ os: [ubuntu-latest, windows-latest] # TODO: reenable macos-latest
version: ['stable']
go: ['1.15', '1.16.0-rc1']