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/api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: API

on:
push:
branches: [main]
paths:
- 'apps/api/**'
- 'packages/shared/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/api.yml'
pull_request:
paths:
- 'apps/api/**'
- 'packages/shared/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/api.yml'

jobs:
api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Build shared package
run: npm run build -w @discoverly/shared

- name: Lint
run: npm run lint -w @discoverly/api

- name: Test
run: npm run test -w @discoverly/api

- name: Build
run: npm run build -w @discoverly/api
24 changes: 0 additions & 24 deletions .github/workflows/backend.yml

This file was deleted.

39 changes: 25 additions & 14 deletions .github/workflows/mobile.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,36 @@
name: Mobile CI
name: Mobile

on:
push:
branches: [main]
paths:
- 'apps/mobile/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/mobile.yml'
pull_request:
branches: ['main']
paths:
- 'mobile/**'
- 'apps/mobile/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/mobile.yml'
push:
branches: ['main']

jobs:
mobile-checks:
mobile:
runs-on: ubuntu-latest
env:
EXPO_NO_TELEMETRY: 1
EXPO_PUBLIC_API_BASE_URL: http://localhost:5000
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- run: npm run lint -w mobile
- run: npm run typecheck -w mobile
- run: npm run export:check -w mobile
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint -w @discoverly/mobile

- name: Test
run: npm run test -w @discoverly/mobile
44 changes: 44 additions & 0 deletions .github/workflows/shared.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Shared & Stellar Packages

on:
push:
branches: [main]
paths:
- 'packages/shared/**'
- 'packages/stellar/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/shared.yml'
pull_request:
paths:
- 'packages/shared/**'
- 'packages/stellar/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/shared.yml'

jobs:
shared:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Lint shared
run: npm run lint -w @discoverly/shared

- name: Build shared
run: npm run build -w @discoverly/shared

- name: Lint stellar
run: npm run lint -w @discoverly/stellar

- name: Build stellar
run: npm run build -w @discoverly/stellar
43 changes: 32 additions & 11 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,44 @@
name: Web CI
name: Web

on:
push:
branches: [main]
paths:
- 'apps/web/**'
- 'packages/shared/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/web.yml'
pull_request:
branches: ['main']
paths:
- 'web/**'
- 'apps/web/**'
- 'packages/shared/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/web.yml'
push:
branches: ['main']

jobs:
web-checks:
web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- run: npm run lint -w web
- run: npm run typecheck -w web
- run: npm run build -w web
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Build shared package
run: npm run build -w @discoverly/shared

- name: Lint
run: npm run lint -w @discoverly/web

- name: Test
run: npm run test -w @discoverly/web

- name: Build
run: npm run build -w @discoverly/web
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
**/dist-export
**/.expo
**/.turbo
**/.next
*.tsbuildinfo


# Logs
Expand Down
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
dist
build
.next
.expo
coverage
*.lock
package-lock.json
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"tabWidth": 2
}
Loading
Loading