Skip to content

ci: add format check on CI (#12) #40

ci: add format check on CI (#12)

ci: add format check on CI (#12) #40

Workflow file for this run

name: Unit Tests
on:
pull_request:
branches: [ main ]
paths-ignore:
- 'docs/**'
- '*.md'
push:
branches: [ main ]
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
node_matrix:
uses: appium/appium-workflows/.github/workflows/node-lts-matrix.yml@main
test:
needs:
- node_matrix
strategy:
fail-fast: false
matrix:
node-version: ${{ fromJSON(needs.node_matrix.outputs.versions) }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- uses: SocketDev/action@v1
with:
mode: firewall-free
- run: sfw npm install --no-package-lock
name: Install dev dependencies
- run: npm run lint
name: Run linter
- run: npm run format:check
name: Run Prettier check
- run: npm run test
name: Run unit tests