Skip to content

Commit

Permalink
ci: update validate job
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed Feb 17, 2025
1 parent c4faf6b commit 89a915a
Showing 1 changed file with 3 additions and 41 deletions.
44 changes: 3 additions & 41 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,45 +10,6 @@ on:
# no need to bother caching bun deps
# https://github.com/oven-sh/setup-bun/issues/14#issuecomment-1714116221
jobs:
changed-files:
runs-on: ubuntu-latest
outputs:
any_ts_changed: ${{ steps.changed-files.outputs.any_changed }}
steps:
- uses: actions/checkout@v4
- uses: tj-actions/changed-files@v44
id: changed-files
with:
files: |
{src,test}/**/*.ts
package.json
tsconfig.json
_test:
needs: changed-files
if: needs.changed-files.outputs.any_ts_changed == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun test --coverage --coverage-reporter lcov --coverage-dir .
- name: Coveralls
uses: coverallsapp/github-action@v2.3.0
with:
format: lcov
file: lcov.info

test:
needs: _test
# workaround for https://github.com/orgs/community/discussions/13690
# https://stackoverflow.com/a/77066140/9771158
if: ${{ !(failure() || cancelled()) }}
runs-on: ubuntu-latest
steps:
- name: Tests OK (passed or skipped)
run: exit 0

validate:
runs-on: ubuntu-latest
steps:
Expand All @@ -59,7 +20,8 @@ jobs:
run: |
bun concurrently \
-c auto \
-n format,lint,typecheck \
-n format,lint,typecheck,build \
'bun dprint check' \
'bun biome check --config-path=.biome.jsonc .' \
'bun tsc'
'bun tsc' \
'cd web && bun vite build'

0 comments on commit 89a915a

Please sign in to comment.