Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Prove in CI that esbuild works
  • Loading branch information
xeger committed Jul 22, 2022
commit cc5271ef0bf3c5b0f25b096b5bf26c592d6a1e95
32 changes: 26 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,25 @@ on:
- push
- pull_request_target
jobs:
ci:
name: CI
# Ensure that the distributables compile with esbuild (since tests use tsc)
build:
name: Build Distributables
runs-on: ubuntu-latest
env:
CI: true
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
with:
node-version: 14.x
cache: yarn
- name: Compile extension
run: |
yarn install --frozen-lockfile
yarn compile
# Run tests (including a special build of extension w/ tsc, not esbuild)
test:
name: Run Tests
strategy:
matrix:
os:
Expand All @@ -28,12 +45,12 @@ jobs:
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Install gem
- name: Install Gem
run: gem install syntax_tree
- name: Compile extension
- name: Compile Tests
run: |
yarn install --frozen-lockfile
yarn compile
yarn test-compile
- name: Setup GUI Environment
run: |
sudo apt-get install -yq dbus-x11 ffmpeg > /dev/null
Expand Down Expand Up @@ -100,9 +117,12 @@ jobs:
start-stop-daemon --stop --pidfile ~/var/run/Xvfb.pid
kill $DBUS_SESSION_BUS_PID
if: always() && runner.os == 'Linux'
# Merge green PRs automatically if they come from repository owner or Dependabot
automerge:
name: AutoMerge
needs: ci
needs:
- build
- test
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target' && (github.actor == github.repository_owner || github.actor == 'dependabot[bot]')
steps:
Expand Down