Skip to content

ci: empty commit to create workflows on new main #1

ci: empty commit to create workflows on new main

ci: empty commit to create workflows on new main #1

Workflow file for this run

name: Lint
on:
pull_request:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- run: npm ci
- name: Prettify code
uses: creyD/prettier_action@v4.3
with:
prettier_options: --write .
only_changed: true
commit_message: 'chore: format with prettier'
clean_node_folder: false
- name: Lint
# github adds inline annotation for compact or stylish format
# which is different than our default for local usage
run: npm run lint -- --format=compact
- name: Types
run: npm run typecheck
# we still want to check types if lint fails just to know everything
# and not peel errors to uncover new ones of different type
if: always()