Skip to content

ci(server): set NEXT_PUBLIC_PSE_BANDADA_GROUP_ID env var #212

ci(server): set NEXT_PUBLIC_PSE_BANDADA_GROUP_ID env var

ci(server): set NEXT_PUBLIC_PSE_BANDADA_GROUP_ID env var #212

Workflow file for this run

name: main
on:
# push trigger required to get coveralls monitoring of default branch
# pull_request required to get PR coveralls comments
push:
branches: [main]
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
outputs:
jts_any_changed: ${{ steps.changed-files.outputs.jts_any_changed }}
steps:
- uses: actions/checkout@v4
- uses: tj-actions/changed-files@v44
id: changed-files
with:
files_yaml: |
jts:
- tsconfig.json
- apps/{client,server}/**/*.ts
- apps/{client,server}/package.json
- apps/{client,server}/tsconfig.json
_test-jts:
needs: changed-files
if: needs.changed-files.outputs.jts_any_changed == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun test --coverage --coverage-reporter lcov --coverage-dir .
# - name: Coveralls
# uses: coverallsapp/[email protected]
# with:
# # TODO: remove when some tests are defined
# allow-empty: true
# format: lcov
# file: lcov.info
test:
needs: [_test-jts]
if: ${{ !(failure() || cancelled()) }}
runs-on: ubuntu-latest
steps:
- name: Tests OK (passed or skipped)
run: true
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- name: Validate
run: |
bun concurrently \
-c auto \
-n format,lint-jtsx,typecheck-server,typecheck-ui \
'bun dprint check' \
'bun biome check --config-path=.biome.jsonc .' \
'bun tsc -p apps/server/tsconfig.build.json' \
'bun tsc -p apps/client/tsconfig.json'