diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 877a4bf..d269450 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,13 +6,17 @@ on: - main jobs: - prepare: - uses: ./.github/workflows/prepare.yml - lint: - needs: prepare runs-on: ubuntu-latest steps: + # setup + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + + - name: Install package dependencies + run: bun install + + # goal - name: Check TypeScript types run: bun run check diff --git a/.github/workflows/prepare.yml b/.github/workflows/prepare.yml deleted file mode 100644 index 09c7ffb..0000000 --- a/.github/workflows/prepare.yml +++ /dev/null @@ -1,14 +0,0 @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb803b6..2cf54ae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Run tests +name: Test on: pull_request: @@ -6,12 +6,16 @@ on: - main jobs: - prepare: - uses: ./.github/workflows/prepare.yml - test: - needs: prepare runs-on: ubuntu-latest steps: + # setup + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + + - name: Install package dependencies + run: bun install + + # goal - name: Run tests run: bun run test