Skip to content

Commit

Permalink
ci: add initial test pipeline
Browse files Browse the repository at this point in the history
1. Tidy up peer deps conflicts
2. Remove  unused dependencies
3. Create a CI pipeline to test building for Android

closes: #18
Signed-off-by: Rifa Achrinza <[email protected]>
  • Loading branch information
achrinza committed Aug 1, 2024
1 parent 2d04c2f commit b5a6704
Show file tree
Hide file tree
Showing 24 changed files with 10,124 additions and 4,352 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Test

on:
pull_request:
branches:
- main
schedule:
- cron: '0 13 * * 6' # At 13:00 on Saturday

permissions: {}

jobs:
test:
name: Android
runs-on: ubuntu-latest
permissions: {}

steps:
- name: Harden runner
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Java
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
distribution: temurin
java-version: 17

- name: Setup Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 20
cache: npm

- name: Setup Android SDK
uses: android-actions/setup-android@00854ea68c109d98c75d956347303bf7c45b0277 # v3.2.1

- name: Bootstrap dependencies
run: npm ci

- name: Build android APK
run: |
cd packages/frontend
npm exec \
--package=shadow-cljs \
-- \
shadow-cljs compile app
npm exec \
--package=expo \
-- \
expo prebuild --platform=android
npm exec \
--package=react-native \
-- \
react-native build-android --mode=release
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ node_modules/
.lsp/
.expo/
*~
packages/frontend/app/
packages/frontend/assets/*
\#*#
.\#*
.m2
Expand Down
16 changes: 0 additions & 16 deletions app.json

This file was deleted.

Loading

0 comments on commit b5a6704

Please sign in to comment.