-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow that runs on PRs and validates that build works
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
1 parent
5886915
commit ad2b65d
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|