From 3e7a92312bded9121233d1f7a750f460cbac780d Mon Sep 17 00:00:00 2001 From: Guilherme Banci Date: Mon, 13 Sep 2021 22:14:22 -0300 Subject: [PATCH] [#2] chore - create CD/CI workflow Signed-off-by: Guilherme Banci --- .github/workflows/cd.yml | 56 ++++++++++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 28 ++++++++++++++++++++ ios/Podfile.lock | 18 +++++-------- package.json | 1 - yarn.lock | 5 ---- 5 files changed, 90 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/cd.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..62864b3 --- /dev/null +++ b/.github/workflows/cd.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5eaea05 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/ios/Podfile.lock b/ios/Podfile.lock index d800d2e..7dec9ae 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -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): @@ -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`) @@ -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: @@ -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 diff --git a/package.json b/package.json index d73852c..d18cbe3 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index f5fcd3d..36882f1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"