Skip to content

Commit

Permalink
ci: refactor (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud authored Jul 12, 2024
1 parent 64c0aa5 commit 5896624
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 65 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
branches: [main]

# 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
Expand All @@ -22,7 +24,7 @@ jobs:
package.json
tsconfig.json
test:
_test:
needs: changed-files
if: needs.changed-files.outputs.any_ts_changed == 'true'
runs-on: ubuntu-latest
Expand All @@ -37,6 +39,16 @@ jobs:
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: true

validate:
runs-on: ubuntu-latest
steps:
Expand Down
64 changes: 0 additions & 64 deletions .github/workflows/validate.yaml

This file was deleted.

0 comments on commit 5896624

Please sign in to comment.