-
Notifications
You must be signed in to change notification settings - Fork 20
49 lines (40 loc) · 1.32 KB
/
pull_requests.yml
File metadata and controls
49 lines (40 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: PR build
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: 17
distribution: "temurin"
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 22.x
cache: yarn
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: yarn install
- name: 🏗 Create google-services.json file
run: echo "${{ secrets.GOOGLE_SERVICES_JSON_B64 }}" | base64 -d > ./google-services.json
- name: 🚀 Build app
run: eas build --non-interactive --platform android --local --profile preview --output=./app-release.apk
env:
GOOGLE_SERVICES_JSON: "/home/runner/work/go/go/google-services.json"
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
- name: 🧪 Run tests
run: yarn test
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: alby-go-android.apk
path: ./app-release.apk