feat: add CI/CD workflows and EAS build config (Sprint 5)
Some checks are pending
Build (EAS) / EAS Build (Android Preview APK) (push) Waiting to run
Some checks are pending
Build (EAS) / EAS Build (Android Preview APK) (push) Waiting to run
This commit is contained in:
37
.gitea/workflows/build.yml
Normal file
37
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
name: Build (EAS)
|
||||
|
||||
# Triggered on push to main branch.
|
||||
# IMPORTANT: Set EXPO_TOKEN as a Gitea Actions secret before running this workflow.
|
||||
# Go to: Repo → Settings → Actions → Secrets → Add secret: EXPO_TOKEN
|
||||
# Get your token at: https://expo.dev/accounts/[username]/settings/access-tokens
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
eas-build:
|
||||
name: EAS Build (Android Preview APK)
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js 20
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Install EAS CLI
|
||||
run: npm install -g eas-cli
|
||||
|
||||
- name: Build Android APK (preview)
|
||||
run: eas build --platform android --profile preview --non-interactive
|
||||
env:
|
||||
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
|
||||
31
.gitea/workflows/ci.yml
Normal file
31
.gitea/workflows/ci.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
- 'sprint/**'
|
||||
|
||||
jobs:
|
||||
lint-and-typecheck:
|
||||
name: Lint & TypeScript Check
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js 20
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run ESLint
|
||||
run: npx eslint . --ext .ts,.tsx --max-warnings 0
|
||||
|
||||
- name: Run TypeScript check
|
||||
run: npx tsc --noEmit
|
||||
Reference in New Issue
Block a user