Skip to content

Commit

Permalink
clean up workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
alecananian committed Feb 10, 2024
1 parent d77d1e1 commit 4704969
Show file tree
Hide file tree
Showing 7 changed files with 739 additions and 619 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Apps [Production]
name: Build Tlon Mobile [Production]
on:
workflow_dispatch:
inputs:
Expand All @@ -9,9 +9,6 @@ on:
- all
- android
- ios
push:
tags:
- "v*"
env:
NOTIFY_PROVIDER: rivfur-livmet
NOTIFY_SERVICE: groups-native
Expand All @@ -25,7 +22,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: ./ui/.nvmrc
- name: Set up Expo and EAS
uses: expo/expo-github-action@v8
with:
Expand All @@ -34,6 +31,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build for selected platforms
working-directory: ./apps/tlon-mobile
run:
eas build --profile production --platform ${{ inputs.platform || 'all' }} --non-interactive --auto-submit
env:
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.0.0
uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v3.1.1
uses: actions/setup-node@v4
with:
node-version-file: ./ui/.nvmrc

Expand All @@ -19,12 +19,13 @@ jobs:
run: npm run build:shared

- name: Run Lint
run: npm run lint
working-directory: ./ui
run: npm run lint --workspaces --if-present

- name: Check Types
run: npm run tsc --workspaces --if-present

- name: Run Tests
run: npm run test -- run
working-directory: ./ui
run: npm run test --workspaces --if-present -- run

- name: Install Playwright Browsers
run: npx playwright install --with-deps
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Push Updates [Production]
name: Push Tlon Mobile Update [Production]
on:
workflow_dispatch:
push:
branches:
- main
env:
NOTIFY_PROVIDER: rivfur-livmet
NOTIFY_SERVICE: groups-native
Expand All @@ -17,7 +14,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version-file: ./ui/.nvmrc
- name: Set up Expo and EAS
uses: expo/expo-github-action@v8
with:
Expand All @@ -26,5 +23,6 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Push update for all platforms
working-directory: ./apps/tlon-mobile
run:
eas update --auto --platform all --channel production --non-interactive
33 changes: 0 additions & 33 deletions apps/tlon-mobile/.github/workflows/pr_checks.yml

This file was deleted.

2 changes: 1 addition & 1 deletion apps/tlon-mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"format:swift": "swiftformat **/*.swift --exclude ./ios/Pods, ./node_modules",
"lint": "eslint ./src",
"test": "vitest --watch false",
"typecheck": "tsc --noEmit",
"tsc": "tsc --noEmit",
"postinstall": "npm run generate",
"eas-build-post-install": "./post-install"
},
Expand Down
Loading

0 comments on commit 4704969

Please sign in to comment.