forked from microsoft/vscode-cmake-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (58 loc) · 1.77 KB
/
ci-main-linux.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
name: CI (Linux)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Yarn environment
uses: DerYeger/[email protected]
with:
node-version: 16
- name: Build the extension
run: yarn compile-production
- name: Lint
run: yarn lint
- name: Install CMake/Ninja
uses: lukka/[email protected]
- name: Build fake compilers for tests
uses: urkle/[email protected]
with:
source-dir: ${{ github.workspace }}/test/fakeOutputGenerator
configure-options: -DCMAKE_INSTALL_PREFIX:STRING=${{ github.workspace }}/test/fakebin
install-build: true
- name: Delete NOTICE.txt
run: rm ${{ github.workspace }}/NOTICE.txt
- name: Run backend tests
run: yarn backendTests
- name: Run smoke tests
uses: GabrielBB/[email protected]
with:
run: yarn smokeTests
- name: Run unit tests
uses: GabrielBB/[email protected]
with:
run: yarn unitTests
- name: Run successful-build test
uses: GabrielBB/[email protected]
with:
run: yarn extensionTestsSuccessfulBuild
- name: Run single root test
uses: GabrielBB/[email protected]
with:
run: yarn extensionTestsSingleRoot
- name: Run multi root test
uses: GabrielBB/[email protected]
with:
run: yarn extensionTestsMultiRoot
- name: Upload test logs if tests failed
if: failure()
uses: actions/[email protected]
with:
name: TestLogs
path: test/**/log.txt
if-no-files-found: warn