Skip to content

Commit

Permalink
Refactored workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jawj committed Dec 10, 2024
1 parent c9a1fed commit c5d6ee7
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 36 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/check-format.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/check-types.yml

This file was deleted.

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

on:
pull_request:
branches:
- main

jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: ./.github/workflows/prepare.yml

- name: Check TypeScript types
run: bun run check

- name: Check code formatting
run: bun run format

14 changes: 14 additions & 0 deletions .github/workflows/prepare.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Prepare

on:
workflow_call

jobs:
prepare-ci-jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2

- name: Install package dependencies
run: bun install
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- uses: ./.github/workflows/prepare.yml

- run: bun install
- run: bun run test
- name: Run tests
run: bun run test

0 comments on commit c5d6ee7

Please sign in to comment.