-
Notifications
You must be signed in to change notification settings - Fork 756
79 lines (67 loc) · 2.14 KB
/
test-long-all.yml
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
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.21', '1.22', '1.23']
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: './extension/package-lock.json'
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
check-latest: true
cache: true
- name: Install dependencies
run: npm ci
working-directory: ./extension
- name: Compile
run: npm run vscode:prepublish
working-directory: ./extension
- name: Install Go tools (Modules mode)
run: |
go version
go run ./tools/installtools/main.go
working-directory: ./extension
env:
GO111MODULE: on
EXT: "${{ matrix.os == 'windows-latest' && '.exe' || ''}}"
- name: Run unit tests
run: npm run unit-test
working-directory: ./extension
- name: Run tests (Linux)
run: xvfb-run -a npm run test
working-directory: ./extension
if: ${{ matrix.os == 'ubuntu-latest' }}
env:
CODE_VERSION: ${{ matrix.version }}
VSCODEGO_BEFORE_RELEASE_TESTS: true
- name: Run tests (Windows/Mac)
run: npm run test
working-directory: ./extension
if: ${{ matrix.os != 'ubuntu-latest' }}
env:
CODE_VERSION: ${{ matrix.version }}
VSCODEGO_BEFORE_RELEASE_TESTS: true
- name: Lint check
run: npm run lint
working-directory: ./extension
if: ${{ matrix.os == 'ubuntu-latest' && matrix.version == 'stable' }}