This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
chore: update @vscode/test-electron to pass test #694
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: build | |
on: [push, pull_request] | |
jobs: | |
tsc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.7' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1.3.1 | |
with: | |
version: 1.3.2 | |
- name: Install dependencies | |
run: npm ci | |
- name: TypeScript compile | |
run: npx tsc | |
package: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.7' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1.3.1 | |
with: | |
version: 1.3.2 | |
- name: Install dependencies | |
run: npm ci | |
- name: Package extension | |
run: npx @vscode/vsce package | |
ts-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.7' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1.3.1 | |
with: | |
version: 1.3.2 | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
ts-test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.7' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1.3.1 | |
with: | |
version: 1.3.2 | |
- name: Install dependencies | |
run: npm ci | |
- run: xvfb-run -a npm test | |
if: runner.os == 'Linux' | |
- run: npm test | |
if: runner.os != 'Linux' | |
py-lint: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: python/ | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.7' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1.3.1 | |
with: | |
version: 1.3.2 | |
- name: Install dependencies | |
run: poetry install --no-interaction --no-root | |
- name: Lint | |
run: | | |
poetry run pylint scripts | |
poetry run mypy scripts | |
py-test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
working-directory: python/ | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.7' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1.3.1 | |
with: | |
version: 1.3.2 | |
- name: Install dependencies | |
run: poetry install --no-interaction --no-root | |
- name: Test | |
run: poetry run pytest |