Skip to content

Commit

Permalink
Merge pull request #18 from fga-eps-mds/feature/2-cd/ci
Browse files Browse the repository at this point in the history
[#2] create CD/CI workflow
  • Loading branch information
gdeusdara authored Sep 14, 2021
2 parents 87c02f5 + 3e7a923 commit 5b83ee4
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 12 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CD Production

on:
push:
branches:
- main

jobs:
# test:
# name: CI Tests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Install Modules
# run: yarn install --frozen-lockfile
# - name: Run Tests
# run: yarn test

build:
name: CD Build Android
# needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build container
run: |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
yarn install --frozen-lockfile
cd ./android
./gradlew clean
./gradlew assembleRelease --warning-mode=all
- uses: actions/upload-artifact@master
with:
name: apk
path: ./android/app/build/outputs/apk/release/app-release.apk

tagged-release:
name: "Tagged Release"
needs: build
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- name: Downlaod APK File
uses: actions/download-artifact@master
with:
name: apk
path: ./
- name: Add Github Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
files: |
*.apk
LICENSE
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# name: CI - Lint, Test, Build

# on:
# push:
# pull_request:

# jobs:
# lint:
# name: CI Lint
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Install Modules
# run: npm ci
# - name: ESLint
# env:
# CI: true
# run: npm run lint

# test:
# name: CI Tests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Install Modules
# run: npm ci
# - name: Run Tests
# run: npm run test
6 changes: 0 additions & 6 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ PODS:
- react-native-config/App (= 1.4.4)
- react-native-config/App (1.4.4):
- React-Core
- react-native-connectivity-status (1.5.1):
- React
- react-native-geolocation-service (5.2.0):
- React
- react-native-google-maps (0.29.3):
Expand Down Expand Up @@ -374,7 +372,6 @@ DEPENDENCIES:
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
- react-native-camera (from `../node_modules/react-native-camera`)
- react-native-config (from `../node_modules/react-native-config`)
- react-native-connectivity-status (from `../node_modules/react-native-connectivity-status`)
- react-native-geolocation-service (from `../node_modules/react-native-geolocation-service`)
- react-native-google-maps (from `../node_modules/react-native-maps`)
- react-native-image-picker (from `../node_modules/react-native-image-picker`)
Expand Down Expand Up @@ -452,8 +449,6 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-camera"
react-native-config:
:path: "../node_modules/react-native-config"
react-native-connectivity-status:
:path: "../node_modules/react-native-connectivity-status"
react-native-geolocation-service:
:path: "../node_modules/react-native-geolocation-service"
react-native-google-maps:
Expand Down Expand Up @@ -531,7 +526,6 @@ SPEC CHECKSUMS:
React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a
react-native-camera: 85210eb59b028e9430d29fa33b0252c56113beff
react-native-config: 72d948053a442779b3178fddd571e37f118ef606
react-native-connectivity-status: 2325459ddad171e1f88af01f52a6a1f34ad37102
react-native-geolocation-service: 7c9436da6dfdecd9526c62eac62ea2bc3f0cc8ea
react-native-google-maps: d6a30377b40a338bd09d6ad36ce48dc5d12b5792
react-native-image-picker: a6e56460d34905c849ada551db30897dc7f3d535
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"react-native-android-location-enabler": "^1.2.2",
"react-native-camera": "^4.1.1",
"react-native-config": "^1.4.4",
"react-native-connectivity-status": "^1.5.2",
"react-native-geolocation-service": "^5.2.0",
"react-native-gesture-handler": "^1.10.3",
"react-native-image-picker": "^4.0.6",
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7229,11 +7229,6 @@ react-native-config@^1.4.4:
resolved "https://registry.yarnpkg.com/react-native-config/-/react-native-config-1.4.4.tgz#e0e10802d1e61ef051040c84dfd19f85a5984620"
integrity sha512-bu47sJHn/HrB7COAWBI8DieAhrbFLINHFE2HBCcVkDu0Y5ScrMs6vL+jhIm+pMSgxouseLhXG8h7xYYpxE38PA==

react-native-connectivity-status@^1.5.2:
version "1.5.2"
resolved "https://registry.yarnpkg.com/react-native-connectivity-status/-/react-native-connectivity-status-1.5.2.tgz#cdb0a1e34c8e068e6a021cbb2d918ab7aa98c23d"
integrity sha512-w1zmJETgn1XvmZ20q69k5yuvA4dUWFbDfR0MOfQWKB9I3xKnNhFABIOoqVc6pvll3zjnSurIhbzkMgUVONrXqw==

react-native-flipper@^0.34.0:
version "0.34.0"
resolved "https://registry.yarnpkg.com/react-native-flipper/-/react-native-flipper-0.34.0.tgz#7df1f38ba5d97a9321125fe0fccbe47d99e6fa1d"
Expand Down

0 comments on commit 5b83ee4

Please sign in to comment.