Github Action to Close Stale Issues #2287
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: CI (Windows) | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Setup Node environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Yarn | |
run: npm install -g yarn | |
- name: Install dependencies | |
run: yarn install | |
- name: Build the extension | |
run: yarn compile-production | |
- name: Lint | |
run: yarn lint | |
# The cmake server mode has been removed since CMake 3.20 | |
- name: Install CMake/Ninja | |
uses: lukka/[email protected] | |
- name: Build fake compilers for tests | |
uses: urkle/[email protected] | |
with: | |
source-dir: ${{ github.workspace }}/test/fakeOutputGenerator | |
configure-options: -DCMAKE_INSTALL_PREFIX:STRING=${{ github.workspace }}/test/fakebin | |
install-build: true | |
- name: Delete NOTICE.txt | |
run: del ${{ github.workspace }}/NOTICE.txt | |
- name: Run backend tests | |
run: yarn backendTests | |
- name: Run smoke tests | |
run: yarn smokeTests | |
- name: Run unit tests | |
run: yarn unitTests | |
- name: Run successful-build test | |
run: yarn extensionTestsSuccessfulBuild | |
- name: Run single root test | |
run: yarn extensionTestsSingleRoot | |
- name: Run multi root test | |
run: yarn extensionTestsMultiRoot | |
- name: Upload test logs if tests failed | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: TestLogs | |
path: test/**/log.txt | |
if-no-files-found: warn |