Skip to content

Commit

Permalink
Add workflow that runs on PRs and validates that build works
Browse files Browse the repository at this point in the history
The workflow is just a slightly modified copy of the one used to
publish, minus the publish part and made to run for PRs.

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>
  • Loading branch information
marcdumais-work committed Jan 22, 2024
1 parent 5886915 commit ad2b65d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test build/packaging of built-in extensions
on:
pull_request:
branches:
- master
env:
NODE_OPTIONS: --max-old-space-size=8192
jobs:
linux:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v1
- run: |
git submodule init
git submodule update
name: Checkout VS Code
# should be aligned with https://github.com/microsoft/vscode/blob/8031c495a65de120560d27703c415eb44c3a99a1/.github/workflows/ci.yml#L22-L32
- run: |
sudo apt-get update
sudo apt-get install -y libxkbfile-dev pkg-config libkrb5-dev libxss1 dbus xvfb libgtk-3-0 libgbm1
sudo cp vscode/build/azure-pipelines/linux/xvfb.init /etc/init.d/xvfb
sudo chmod +x /etc/init.d/xvfb
sudo update-rc.d xvfb defaults
sudo service xvfb start
name: Setup Build Environment
- uses: actions/setup-node@v1
with:
node-version: 18
- run: npx ovsx --version
name: Check ovsx version
- run: |
yarn
yarn build:extensions
name: Bundle Extensions
- run: yarn package-vsix:latest
name: Package Solid Version of Extensions
- run: yarn create-extension-pack:latest
name: Create built-in extensions pack

0 comments on commit ad2b65d

Please sign in to comment.