Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/actions/commitlint/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Commit Lint
description: Validate current commit (last commit) or PR commits with commitlint

runs:
using: composite
steps:
- uses: ./.github/actions/setup-node

- name: Validate current commit (last commit) with commitlint
shell: bash
if: github.event_name == 'push'
run: yarn commitlint --last --verbose

- name: Validate PR commits with commitlint
shell: bash
if: github.event_name == 'pull_request'
run:
yarn commitlint --from ${{ github.event.pull_request.base.sha }} --to
${{ github.event.pull_request.head.sha }} --verbose
11 changes: 11 additions & 0 deletions .github/actions/lint/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Run Linters
description: Run linter

runs:
using: composite
steps:
- uses: ./.github/actions/setup-node

- name: Run Linters
shell: bash
run: yarn lint:check
20 changes: 20 additions & 0 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Setup Node.js with Dependencies'
description: 'Checkout repo, setup Node.js, cache and install dependencies'

runs:
using: 'composite'
steps:
- name: Setup Node.js
uses: actions/setup-node@v6

- name: Cache Dependencies
id: cache
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
run: yarn install --immutable
11 changes: 11 additions & 0 deletions .github/actions/tests/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Run Tests
description: Run tests

runs:
using: composite
steps:
- uses: ./.github/actions/setup-node

- name: Run Tests
shell: bash
run: yarn test --ci
11 changes: 11 additions & 0 deletions .github/actions/typecheck/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Run Typecheck
description: Run typecheck

runs:
using: composite
steps:
- uses: ./.github/actions/setup-node

- name: Run Typecheck
shell: bash
run: yarn tsc --noEmit
91 changes: 0 additions & 91 deletions .github/workflows/auto-assign-by-label.yml

This file was deleted.

186 changes: 0 additions & 186 deletions .github/workflows/auto-milestone.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Commit Lint

on:
push:
branches: [main]
pull_request:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: ./.github/actions/setup-node
- uses: ./.github/actions/commitlint
Loading