This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree 4 files changed +91
-129
lines changed
4 files changed +91
-129
lines changed Original file line number Diff line number Diff line change
1
+ name : CI-CD
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - master
10
+ schedule :
11
+ - cron : ' 0 0 * * *'
12
+ workflow_dispatch :
13
+
14
+
15
+ jobs :
16
+ build :
17
+ runs-on : ${{ matrix.os }}
18
+
19
+ strategy :
20
+ fail-fast : false
21
+ matrix :
22
+ os : [windows-2019, ubuntu-18.04, macos-10.15]
23
+ node : [12]
24
+
25
+ steps :
26
+ - name : Checkout
27
+ uses : actions/checkout@v2
28
+ with :
29
+ persist-credentials : false
30
+
31
+ - name : Use Node.js ${{ matrix.node }}
32
+ uses : actions/setup-node@v1
33
+ with :
34
+ node-version : ${{ matrix.node }}
35
+
36
+ - name : Build
37
+ shell : bash
38
+ run : |
39
+ yarn install --no-lockfile
40
+ yarn prepare
41
+ env :
42
+ NODE_OPTIONS : " --max_old_space_size=4096"
43
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # https://github.com/microsoft/vscode-ripgrep/issues/9
44
+
45
+ - name : Test
46
+ uses : nick-invision/retry@v2
47
+ with :
48
+ timeout_minutes : 2
49
+ max_attempts : 3
50
+ retry_on : error
51
+ command : npx lerna run --concurrency=1 --stream --scope "@theia/!(example-)*" test
52
+
53
+ publish :
54
+ needs : build
55
+ if : ${{ github.event_name == 'push' }}
56
+
57
+ runs-on : ubuntu-latest
58
+
59
+ strategy :
60
+ matrix :
61
+ node : [12]
62
+
63
+ steps :
64
+ - name : Checkout
65
+ uses : actions/checkout@v2
66
+ with :
67
+ persist-credentials : false
68
+
69
+ - name : Use Node.js ${{ matrix.node }}
70
+ uses : actions/setup-node@v1
71
+ with :
72
+ node-version : ${{ matrix.node }}
73
+
74
+ - name : Pre-Publish
75
+ shell : bash
76
+ run : yarn
77
+ env :
78
+ NODE_OPTIONS : --max_old_space_size=4096
79
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # https://github.com/microsoft/vscode-ripgrep/issues/9
80
+
81
+ - name : Publish
82
+ uses : nick-invision/retry@v2
83
+ with :
84
+ timeout_minutes : 5
85
+ retry_wait_seconds : 30
86
+ max_attempts : 3
87
+ retry_on : error
88
+ command : yarn run publish:next
89
+ env :
90
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }} # The variable name comes from here: https://github.com/actions/setup-node/blob/70b9252472eee7495c93bb1588261539c3c2b98d/src/authutil.ts#L48
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
9
9
[ ![ Gitpod - Code Now] ( https://img.shields.io/badge/Gitpod-code%20now-blue.svg?longCache=true )] ( https://gitpod.io#https://github.com/eclipse-theia/theia-cpp-extensions )
10
10
[ ![ PRs Welcome] ( https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-curved )] ( https://github.com/eclipse-theia/theia-cpp-extensions/labels/help%20wanted )
11
- [ ![ Build Status ] ( https://api.travis-ci. com/eclipse-theia/theia-cpp-extensions.svg?branch=master )] ( https://travis-ci .com/eclipse-theia/theia-cpp-extensions )
11
+ [ ![ CI-CD ] ( https://github. com/eclipse-theia/theia-cpp-extensions/workflows/CI-CD/badge .svg?branch=master )] ( https://github .com/eclipse-theia/theia-cpp-extensions/actions?query=branch%3Amaster )
12
12
[ ![ Open questions] ( https://img.shields.io/badge/Open-questions-blue.svg?style=flat-curved )] ( https://github.com/eclipse-theia/theia-cpp-extensions/labels/question )
13
13
[ ![ Open bugs] ( https://img.shields.io/badge/Open-bugs-red.svg?style=flat-curved )] ( https://github.com/eclipse-theia/theia-cpp-extensions/labels/bug )
14
14
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments