Skip to content

Instantly share code, notes, and snippets.

@titooan
titooan / innovorder-ci-example-7.yml
Last active February 21, 2022 23:55
Upload the apks on Google Cloud Storage
- name: upload dev apk to cloud storage
run: gsutil -q cp
app/build/outputs/apk/dev/debug/app-dev-debug.apk
destination
@titooan
titooan / innovorder-ci-example-6.yml
Created February 18, 2022 16:55
Run UI tests and build apks
- name: Build debug and preprod apks and run tests
uses: gradle/gradle-build-action@v2
with:
arguments: --stacktrace -Dtrace :app:testDevDebugUnitTest :app:assembleDevDebug :app:assemblePreprodRelease
env:
TERM: dumb
@titooan
titooan / innovorder-ci-example-5.yml
Last active February 18, 2022 16:59
Setup Java 11
- uses: actions/setup-java@v1
with:
java-version: 11
@titooan
titooan / innovorder-ci-example-4.yml
Created February 18, 2022 16:53
Decipher the credentials
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0.2.1
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- name: 'Decrypt github-packages properties'
run: gcloud kms decrypt
--ciphertext-file=encrypted-file_path
@titooan
titooan / innvorder-ci-example-3.yml
Created February 18, 2022 16:50
Checkout the commit that triggered the workflow
- name: checkout
uses: actions/checkout@v2
@titooan
titooan / innovorder-ci-example-2.yml
Created February 18, 2022 16:49
Define a job and assign a runner
jobs:
build-for-commit:
runs-on: ubuntu-latest
@titooan
titooan / innovorder-ci-example-1.yml
Created February 18, 2022 16:47
Define the workflow and the event that will trigger it
name: Build dev and preprod for each commit
on:
push:
branches:
- '**'
@titooan
titooan / innovorder-ci-example.yml
Last active March 21, 2023 18:38
Example of a GitHub Action workflow
name: Build dev and preprod for each commit
on:
push:
branches:
- '**'
jobs:
build-for-commit:
runs-on: ubuntu-latest
- name: checkout