-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reuse workflow for CI builds (#11503)
- Loading branch information
1 parent
4af6ca9
commit 74bddb8
Showing
4 changed files
with
89 additions
and
119 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 |
---|---|---|
|
@@ -7,44 +7,8 @@ on: | |
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js 16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install Dependencies | ||
run: yarn install | ||
working-directory: Extension | ||
|
||
- name: Compile Sources | ||
run: yarn run compile | ||
working-directory: Extension | ||
|
||
- name: Run Linter | ||
run: yarn run lint | ||
working-directory: Extension | ||
|
||
- name: Run unit tests | ||
run: yarn test | ||
working-directory: Extension | ||
|
||
# # NOTE : We can't run the test that require the native binary files | ||
# # yet -- there will be an update soon that allows the tester to | ||
# # acquire them on-the-fly | ||
# - name: Run simple vscode unit tests | ||
# uses: GabrielBB/[email protected] | ||
# with: | ||
# run: yarn test --scenario=SingleRootProject | ||
# working-directory: Extension | ||
|
||
# - name: Run languageServer integration tests | ||
# uses: GabrielBB/[email protected] | ||
# with: | ||
# run: yarn run integrationTests | ||
# working-directory: Extension | ||
job: | ||
uses: ./.github/workflows/job-compile-and-test.yml | ||
with: | ||
runner-env: ubuntu-22.04 | ||
platform: linux |
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 |
---|---|---|
|
@@ -7,44 +7,9 @@ on: | |
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-12 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js 16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install Dependencies | ||
run: yarn install --network-timeout 100000 | ||
working-directory: Extension | ||
|
||
- name: Compile Sources | ||
run: yarn run compile | ||
working-directory: Extension | ||
|
||
- name: Run Linter | ||
run: yarn run lint | ||
working-directory: Extension | ||
|
||
- name: Run unit tests | ||
run: yarn test | ||
working-directory: Extension | ||
|
||
# # NOTE : We can't run the test that require the native binary files | ||
# # yet -- there will be an update soon that allows the tester to | ||
# # acquire them on-the-fly | ||
# - name: Run simple vscode unit tests | ||
# uses: GabrielBB/[email protected] | ||
# with: | ||
# run: yarn test --scenario=SingleRootProject | ||
# working-directory: Extension | ||
|
||
# - name: Run languageServer integration tests | ||
# uses: GabrielBB/[email protected] | ||
# with: | ||
# run: yarn run integrationTests | ||
# working-directory: Extension | ||
job: | ||
uses: ./.github/workflows/job-compile-and-test.yml | ||
with: | ||
runner-env: macos-12 | ||
platform: mac | ||
yarn-args: --network-timeout 100000 |
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
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,73 @@ | ||
# Reuable workflow for compiling and testing extension. | ||
name: Compile and test extension | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
runner-env: | ||
required: true | ||
type: string | ||
platform: | ||
# Expects 'mac', 'linux', or 'windows' | ||
required: true | ||
type: string | ||
yarn-args: | ||
type: string | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ inputs.runner-env }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js 16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install Dependencies | ||
run: yarn install ${{ inputs.yarn-args }} | ||
working-directory: Extension | ||
|
||
- name: Compile Sources | ||
run: yarn run compile | ||
working-directory: Extension | ||
|
||
- name: Run Linter | ||
run: yarn run lint | ||
working-directory: Extension | ||
|
||
- name: Run unit tests | ||
run: yarn test | ||
working-directory: Extension | ||
|
||
# NOTE : We can't run the test that require the native binary files | ||
# yet -- there will be an update soon that allows the tester to | ||
# acquire them on-the-fly | ||
# - name: Run languageServer integration tests | ||
# if: ${{ inputs.platform == 'windows' }} | ||
# run: yarn test --scenario=SingleRootProject | ||
# working-directory: Extension | ||
|
||
# - name: Run E2E IntelliSense features tests | ||
# if: ${{ inputs.platform == 'windows' }} | ||
# run: yarn test --scenario=MultirootDeadlockTest | ||
# working-directory: Extension | ||
|
||
# NOTE: For mac/linux run the tests with xvfb-action for UI support. | ||
# Another way to start xvfb https://github.com/microsoft/vscode-test/blob/master/sample/azure-pipelines.yml | ||
|
||
# - name: Run languageServer integration tests (xvfb) | ||
# if: ${{ inputs.platform == 'mac' || inputs.platform == 'linux' }} | ||
# uses: coactions/setup-xvfb@v1 | ||
# with: | ||
# run: yarn test --scenario=SingleRootProject | ||
# working-directory: Extension | ||
|
||
# - name: Run E2E IntelliSense features tests (xvfb) | ||
# if: ${{ inputs.platform == 'mac' || inputs.platform == 'linux' }} | ||
# uses: coactions/setup-xvfb@v1 | ||
# with: | ||
# run: yarn test --scenario=MultirootDeadlockTest | ||
# working-directory: Extension |