Reduce number of entities fetched to build graph #466
Workflow file for this run
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
name: Check Build | |
on: | |
push: | |
branches: | |
- main | |
- 'release/**' | |
pull_request: | |
branches: | |
- '**' | |
# Cancel running jobs from previous pipelines of the same workflow on PR to save resource when commits are pushed quickly | |
# NOTE: we don't want this behavior on default branch | |
# See https://stackoverflow.com/a/68422069 | |
concurrency: | |
group: ${{ github.ref == 'refs/heads/main' && format('ci-default-branch-{0}-{1}', github.sha, github.workflow) || format('ci-pr-{0}-{1}', github.ref, github.workflow) }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure git | |
run: | | |
git config --global committer.email "[email protected]" | |
git config --global committer.name "FINOS Admin" | |
git config --global author.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
git config --global author.name "${GITHUB_ACTOR}" | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
java-package: jdk | |
- name: Install dependencies | |
run: | | |
npm install | |
npm install -g @vscode/vsce | |
npm install -g ovsx | |
- name: Package | |
run: | | |
npm run release:prepare | |
mkdir artifacts | |
cp legend-engine-ide-client-vscode.vsix artifacts/legend-engine-ide-client-vscode.vsix | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: legend-engine-ide-client-vscode.vsix | |
path: artifacts/legend-engine-ide-client-vscode.vsix | |