Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#
# This source file is part of the Stanford Bloom Application based on the Stanford Spezi Template Application project
#
# SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#

name: iOS

on:
push:
branches:
- main
paths:
- "ios/**" # Only trigger on file changes in "ios" directory
pull_request:
paths:
- "ios/**" # Only trigger on file changes in "ios" directory
workflow_dispatch:
workflow_call:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
swiftlint:
name: SwiftLint
uses: StanfordBDHG/.github/.github/workflows/swiftlint.yml@v2
permissions:
contents: read
with:
path: ios
buildandtest:
name: Build and Test
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
permissions:
contents: read
with:
setupfirebaseemulator: true
resultBundle: Bloom.xcresult
artifactname: Bloom.xcresult
customcommand: "corepack enable && yarn install && { yarn start > server.log 2>&1 & } && cd ios && pod install && fastlane build"
59 changes: 59 additions & 0 deletions .github/workflows/python-lint-typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Python Lint & Type Check

on:
push:
branches:
- main
paths:
- 'backend/**/*.py' # Only trigger on Python file changes in backend
pull_request:
paths:
- 'backend/**/*.py' # Only trigger on Python file changes in backend
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.12

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff

- name: Run Ruff in backend
run: ruff check backend

mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.12

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy
pip install -r backend/requirements.txt

- name: Install missing types for mypy
run: |
mypy --install-types --non-interactive backend

- name: Run mypy in backend
run: mypy backend

67 changes: 67 additions & 0 deletions .github/workflows/ts-lint-typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Typescript Lint & Type Check

on:
push:
branches:
- main
paths:
- 'frontend/**/*.ts'
- 'frontend/**/*.tsx'
- 'index.tsx'
pull_request:
paths:
- 'frontend/**/*.ts'
- 'frontend/**/*.tsx'
- 'index.tsx'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # Or whichever version you're using

- name: Enable Corepack and prepare Yarn
run: |
corepack enable
corepack prepare yarn@3.6.4 --activate

- name: Install dependencies
run: |
yarn install

- name: Run ESLint in frontend and root
run: |
npx eslint frontend/**/*.ts frontend/**/*.tsx index.tsx

tsc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # Or whichever version you're using

- name: Enable Corepack and prepare Yarn
run: |
corepack enable
corepack prepare yarn@3.6.4 --activate

- name: Install dependencies
run: |
yarn install

- name: Run TypeScript compiler to check types
run: |
npx tsc --noEmit