File tree 1 file changed +26
-6
lines changed 1 file changed +26
-6
lines changed Original file line number Diff line number Diff line change 3
3
- push
4
4
- pull_request_target
5
5
jobs :
6
- ci :
7
- name : CI
6
+ # Ensure that the distributables compile with esbuild (since tests use tsc)
7
+ build :
8
+ name : Build Distributables
9
+ runs-on : ubuntu-latest
10
+ env :
11
+ CI : true
12
+ steps :
13
+ - uses : actions/checkout@master
14
+ - uses : actions/setup-node@v3
15
+ with :
16
+ node-version : 14.x
17
+ cache : yarn
18
+ - name : Compile extension
19
+ run : |
20
+ yarn install --frozen-lockfile
21
+ yarn compile
22
+ # Run tests (including a special build of extension w/ tsc, not esbuild)
23
+ test :
24
+ name : Run Tests
8
25
strategy :
9
26
matrix :
10
27
os :
@@ -28,12 +45,12 @@ jobs:
28
45
with :
29
46
bundler-cache : true
30
47
ruby-version : ${{ matrix.ruby }}
31
- - name : Install gem
48
+ - name : Install Gem
32
49
run : gem install syntax_tree
33
- - name : Compile extension
50
+ - name : Compile Tests
34
51
run : |
35
52
yarn install --frozen-lockfile
36
- yarn compile
53
+ yarn test- compile
37
54
- name : Setup GUI Environment
38
55
run : |
39
56
sudo apt-get install -yq dbus-x11 ffmpeg > /dev/null
@@ -100,9 +117,12 @@ jobs:
100
117
start-stop-daemon --stop --pidfile ~/var/run/Xvfb.pid
101
118
kill $DBUS_SESSION_BUS_PID
102
119
if : always() && runner.os == 'Linux'
120
+ # Merge green PRs automatically if they come from repository owner or Dependabot
103
121
automerge :
104
122
name : AutoMerge
105
- needs : ci
123
+ needs :
124
+ - build
125
+ - test
106
126
runs-on : ubuntu-latest
107
127
if : github.event_name == 'pull_request_target' && (github.actor == github.repository_owner || github.actor == 'dependabot[bot]')
108
128
steps :
You can’t perform that action at this time.
0 commit comments