Skip to content

Commit

Permalink
Test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
UrazAkgultan committed May 8, 2024
1 parent 26ff849 commit c0978f6
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/actions/build_android/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: 'Build Android App'
description: 'Builds the Android app using Fastlane'

runs:
using: 'composite'

steps:
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'

- name: Install Fastlane
run: gem install fastlane
shell: bash

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc

- name: Build Android Library with Fastlane
run: cd android && fastlane android local
shell: bash

- name: Copy Android Library to Shared Directory
run: mkdir -p ${{ github.workspace }}/artifacts/android && cp ./artifacts/app-production-debug.apk ${{ github.workspace }}/artifacts/android/app-production-debug.apk
shell: bash

- name: Upload apk to artifact
uses: actions/upload-artifact@v4
with:
name: android
path: ${{ github.workspace }}/artifacts/android/
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Test"

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Build Android apk
uses: ./.github/actions/build_android

0 comments on commit c0978f6

Please sign in to comment.