Skip to content

Commit

Permalink
feat: add CI and CLA
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-virkus committed Feb 4, 2024
1 parent e42d533 commit 4726045
Show file tree
Hide file tree
Showing 21 changed files with 90 additions and 1,101 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "CLA Assistant"
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]

jobs:
CLAAssistant:
runs-on: ubuntu-latest
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
# Beta Release
uses: contributor-assistant/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# the below token should have repo scope and must be manually added by you in the repository's secret
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
path-to-signatures: 'signatures/version1/cla.json'
path-to-document: 'https://github.com/Enough-Software/enough_mail_app/blob/main/CLA.md'
# branch should not be protected
branch: 'main'
allowlist: robert-virkus

# the followings are the optional inputs - If the optional inputs are not given, then default values will be taken
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
#remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
#signed-commit-message: 'For example: $contributorName has signed the CLA in #$pullRequestNo'
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
#lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true)
#use-dco-flag: true - If you are using DCO instead of CLA
51 changes: 51 additions & 0 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@

name: CI Workflow
on:
push:
branches: [main, rewrite]
pull_request:
branches: [main]
jobs:
android:
name: Build Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Decode Keystore and Create key.properties
env:
PROPERTIES_PATH: ${{ github.workspace }}/android/key.properties
STORE_PATH: ${{ github.workspace }}/android/keystore.jks
run: |
echo keyPassword=\${{secrets.PLAY_UPLOAD_KEY_PASSWORD}} > ${{env.PROPERTIES_PATH}}
echo storePassword=\${{secrets.PLAY_UPLOAD_STORE_PASSWORD}} >> ${{env.PROPERTIES_PATH}}
echo keyAlias=\${{secrets.PLAY_KEY_ALIAS}} >> ${{env.PROPERTIES_PATH}}
echo storeFile=\${{env.STORE_PATH}} >> ${{env.PROPERTIES_PATH}}
echo "${{ secrets.PLAY_UPLOAD_KEYSTORE }}" | base64 --decode > ${{env.STORE_PATH}}
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter --version
- run: flutter pub get
#- run: flutter test
- run: flutter build apk --release --dart-define GIPHY_API_KEY=${{ secrets.GIPHY_API_KEY }} --dart-define OAUTH_GMAIL=${{ secrets.OAUTH_GMAIL }} --dart-define OAUTH_OUTLOOK=${{ secrets.OAUTH_OUTLOOK }}

apple:
name: Build iOS
runs-on: macos-13 # required for xcode 15, macos-latest does not yet support it, compare https://github.com/maxim-lobanov/setup-xcode/issues/73
steps:
- uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.1'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
#architecture: x64
- run: flutter --version
- run: flutter pub get
#- run: flutter test
- run: flutter build ios --release --no-codesign
3 changes: 3 additions & 0 deletions signatures/version1/cla.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"signedContributors": []
}
17 changes: 0 additions & 17 deletions windows_generated/.gitignore

This file was deleted.

108 changes: 0 additions & 108 deletions windows_generated/CMakeLists.txt

This file was deleted.

109 changes: 0 additions & 109 deletions windows_generated/flutter/CMakeLists.txt

This file was deleted.

11 changes: 0 additions & 11 deletions windows_generated/flutter/generated_plugin_registrant.cc

This file was deleted.

15 changes: 0 additions & 15 deletions windows_generated/flutter/generated_plugin_registrant.h

This file was deleted.

23 changes: 0 additions & 23 deletions windows_generated/flutter/generated_plugins.cmake

This file was deleted.

Loading

0 comments on commit 4726045

Please sign in to comment.