Skip to content

Commit

Permalink
ci: combine workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
zirkelc committed Jul 21, 2024
1 parent af8c924 commit 8aeb280
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 54 deletions.
38 changes: 35 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,41 @@ permissions:
jobs:
lint:
name: Lint
uses: ./.github/workflows/lint.yml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Biome
uses: biomejs/setup-biome@v2

- name: Lint
run: biome ci --no-errors-on-unmatched .

test:
name: Test
uses: ./.github/workflows/test.yml
secrets: inherit
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4

- name: Setup and Install
id: install
uses: ./.github/actions/setup-and-install
with:
node-version: 20

- name: Start LocalStack
uses: LocalStack/[email protected]
with:
image-tag: 'latest'
install-awslocal: 'true'

- name: Build
run: pnpm build

- name: Test
run: pnpm test

- name: Coverage
if: ${{ steps.install.conclusion == 'success' }}
uses: davelosert/vitest-coverage-report-action@v2
19 changes: 0 additions & 19 deletions .github/workflows/lint.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion vitest.workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineWorkspace([
test: {
name: "unit",
include: ["**/*.{test,spec}.?(c|m)[jt]s?(x)"],
exclude: [...configDefaults.exclude, "tests"],
exclude: [...configDefaults.exclude, "**/tests/**"],

// https://vitest.dev/config/#typecheck
typecheck: {
Expand Down

0 comments on commit 8aeb280

Please sign in to comment.