Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cc5271e

Browse files
committed
Prove in CI that esbuild works
1 parent 69e7be6 commit cc5271e

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,25 @@ on:
33
- push
44
- pull_request_target
55
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
825
strategy:
926
matrix:
1027
os:
@@ -28,12 +45,12 @@ jobs:
2845
with:
2946
bundler-cache: true
3047
ruby-version: ${{ matrix.ruby }}
31-
- name: Install gem
48+
- name: Install Gem
3249
run: gem install syntax_tree
33-
- name: Compile extension
50+
- name: Compile Tests
3451
run: |
3552
yarn install --frozen-lockfile
36-
yarn compile
53+
yarn test-compile
3754
- name: Setup GUI Environment
3855
run: |
3956
sudo apt-get install -yq dbus-x11 ffmpeg > /dev/null
@@ -100,9 +117,12 @@ jobs:
100117
start-stop-daemon --stop --pidfile ~/var/run/Xvfb.pid
101118
kill $DBUS_SESSION_BUS_PID
102119
if: always() && runner.os == 'Linux'
120+
# Merge green PRs automatically if they come from repository owner or Dependabot
103121
automerge:
104122
name: AutoMerge
105-
needs: ci
123+
needs:
124+
- build
125+
- test
106126
runs-on: ubuntu-latest
107127
if: github.event_name == 'pull_request_target' && (github.actor == github.repository_owner || github.actor == 'dependabot[bot]')
108128
steps:

0 commit comments

Comments
 (0)