Skip to content

chore: add OXLint anti-slop linting #1087

chore: add OXLint anti-slop linting

chore: add OXLint anti-slop linting #1087

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
smoke:
name: Smoke (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: ${{ fromJSON(github.event_name == 'pull_request' && '["ubuntu-latest","macos-latest","windows-latest"]' || '["ubuntu-latest"]') }}
env:
DEVSPACE_OAUTH_OWNER_TOKEN: ci-owner-token-that-is-long-enough
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm and Node
uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2
with:
runtime: node@22
cache: true
install: false
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Pi sandbox dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y ripgrep bubblewrap socat
if sysctl kernel.apparmor_restrict_unprivileged_userns >/dev/null 2>&1; then
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
fi
- name: Lint
run: pnpm lint
- name: Typecheck
run: pnpm typecheck
- name: Test
env:
DEVSPACE_REQUIRE_PI_SANDBOX: ${{ matrix.os == 'ubuntu-latest' && '1' || '0' }}
run: pnpm test
- name: Package install smoke test
run: pnpm test:package-install
- name: Doctor
run: node dist/cli.js doctor