Skip to content

Commit

Permalink
[#2] chore - create CD/CI workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Banci <guibanci@gmail.com>
  • Loading branch information
gdeusdara committed Sep 14, 2021
1 parent 20c26b5 commit 8a54bc1
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 18 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
- feature/2-cd/ci
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
18 changes: 6 additions & 12 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -216,20 +216,18 @@ PODS:
- React-cxxreact (= 0.63.4)
- React-jsi (= 0.63.4)
- React-jsinspector (0.63.4)
- react-native-camera (3.44.3):
- react-native-camera (4.1.1):
- React-Core
- react-native-camera/RCT (= 3.44.3)
- react-native-camera/RN (= 3.44.3)
- react-native-camera/RCT (3.44.3):
- react-native-camera/RCT (= 4.1.1)
- react-native-camera/RN (= 4.1.1)
- react-native-camera/RCT (4.1.1):
- React-Core
- react-native-camera/RN (3.44.3):
- react-native-camera/RN (4.1.1):
- React-Core
- react-native-config (1.4.4):
- 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 @@ -372,7 +370,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-maps (from `../node_modules/react-native-maps`)
Expand Down Expand Up @@ -449,8 +446,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 @@ -524,9 +519,8 @@ SPEC CHECKSUMS:
React-jsi: a0418934cf48f25b485631deb27c64dc40fb4c31
React-jsiexecutor: 93bd528844ad21dc07aab1c67cb10abae6df6949
React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a
react-native-camera: b8cc03e2feec0c04403d0998e37cf519d8fd4c6f
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-maps: 41d01d8e0afcebe32bec9eea3bd945adc1b18f7a
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,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-keyboard-aware-scroll-view": "^0.9.3",
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7076,11 +7076,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 8a54bc1

Please sign in to comment.