Skip to content

Docs: fix the path for the syntax tests #76

Docs: fix the path for the syntax tests

Docs: fix the path for the syntax tests #76

Workflow file for this run

# Copyright © SixtyFPS GmbH <info@slint.dev>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
name: autofix.ci # needed to securely identify the workflow
on:
pull_request:
branches: [master, "feature/*"]
push:
branches: [master, "feature/*"]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }}
cancel-in-progress: true
jobs:
format_lint_typecheck:
runs-on: ubuntu-24.04
env:
CARGO_INCREMENTAL: false
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4.0.0
with:
version: 9.11.0
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: ./.github/actions/install-linux-dependencies
- uses: ./.github/actions/setup-rust
with:
toolchain: nightly
components: rustfmt
target: aarch64-linux-android
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Setup Biome CLI
uses: biomejs/setup-biome@v2
- name: Rust format
run: cargo fmt --
- name: C++ format
run: find -iname \*.h -o -iname \*.cpp | xargs clang-format -i
- name: Run biome for top-level json config itself
run: biome format biome.json
- name: Format, Lint on npm projects
run: |
pnpm install --frozen-lockfile
pnpm format
pnpm lint
- name: Check license headers
run: cargo xtask check_license_headers --fix-it
- name: Suggest format changes
uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
- name: Build wasm-interpreter before type check
working-directory: tools/slintpad
run: pnpm build:wasm_interpreter
- name: Build wasm-lsp before type check
working-directory: editors/vscode
run: pnpm build:wasm_lsp
- name: Typecheck on npm projects
run: |
pnpm type-check
- run: sudo apt-get install pipx
- run: pipx install reuse
- name: Check reuse compliance
run: cargo xtask check_reuse_compliance