-
Notifications
You must be signed in to change notification settings - Fork 22
65 lines (61 loc) · 2.07 KB
/
JsActionPush.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
name : js_action_push
on :
push :
branches : [ js_action ]
jobs :
fast :
env :
PRIVATE_WTOOLS_BOT_TOKEN : ${{ secrets.PRIVATE_WTOOLS_BOT_TOKEN }}
PRIVATE_WTOOLS_BOT_SSH_KEY : ${{ secrets.PRIVATE_WTOOLS_BOT_SSH_KEY }}
PRIVATE_WTOOLS_BOT_NPM_PASS : ${{ secrets.PRIVATE_WTOOLS_BOT_NPM_PASS }}
PRIVATE_WTOOLS_BOT_EMAIL : ${{ secrets.PRIVATE_WTOOLS_BOT_EMAIL }}
strategy :
fail-fast : false
matrix :
os : [ ubuntu-latest, windows-latest, macos-latest ]
node-version : [ 20.x ]
if : |
!startsWith( github.event.head_commit.message, 'version' )
&& !startsWith( github.event.head_commit.message, '.' )
&& !startsWith( github.event.head_commit.message, 'Merge' )
runs-on : ${{ matrix.os }}
steps :
- name : Setup git
run : |
git config --global core.autocrlf input
git config --global user.email "[email protected]"
git config --global user.name "Testing"
git config --global pull.rebase false
git config --global init.defaultBranch master
- name : Setup git for windows
if : ${{ matrix.os == 'windows-latest' }}
run : git config --system core.longpaths true
- uses : actions/checkout@v4
- name : ${{ matrix.node-version }}
uses : Wandalen/wretry.action@master
with :
action : actions/setup-node@v4
with : |
node-version : ${{ matrix.node-version }}
attempt_limit : 3
attempt_delay: 1000
- name : Install willbe
uses : Wandalen/wretry.action@master
with :
command : npm i -g willbe@latest
attempt_limit : 3
attempt_delay: 1000
- name : Install submodules
uses : Wandalen/wretry.action@master
with :
command : will .npm.install
attempt_limit : 3
attempt_delay: 1000
- name : Environment
run : env
- run : npm list
continue-on-error : true
- if : startsWith( matrix.os, 'ubuntu' )
run : xvfb-run --auto-servernum npm test
- if : "!startsWith( matrix.os, 'ubuntu' )"
run : npm test