Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

feat: add qmlformat support #702

feat: add qmlformat support

feat: add qmlformat support #702

Workflow file for this run

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.8'
- 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.8'
- 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.8'
- 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.8'
- 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.8'
- 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
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.8'
- 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