mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
43 lines
992 B
YAML
43 lines
992 B
YAML
name: Gradido Shared Test CI
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
files-changed:
|
|
name: Detect File Changes - Shared
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
shared: ${{ steps.changes.outputs.shared }}
|
|
steps:
|
|
- uses: actions/checkout@v3.3.0
|
|
|
|
- name: Check for shared file changes
|
|
uses: dorny/paths-filter@v2.11.1
|
|
id: changes
|
|
with:
|
|
token: ${{ github.token }}
|
|
filters: .github/file-filters.yml
|
|
list-files: shell
|
|
|
|
build:
|
|
name: Unit Tests, typecheck - Shared
|
|
if: needs.files-changed.outputs.shared == 'true'
|
|
needs: files-changed
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: install bun
|
|
uses: oven-sh/setup-bun@v2
|
|
|
|
- name: install dependencies
|
|
run: bun install --filter shared --frozen-lockfile
|
|
|
|
- name: typecheck
|
|
run: cd shared && bun run typecheck
|
|
|
|
- name: unit tests
|
|
run: cd shared && bun run test
|
|
|