Skip to content

Commit

Permalink
Merge pull request #210 from JordyHers-org/dev
Browse files Browse the repository at this point in the history
[17.10.2023] Merge `dev` into `master`
  • Loading branch information
JordyHers authored Oct 17, 2023
2 parents 6df5d1a + a5ae1d1 commit 11aa929
Show file tree
Hide file tree
Showing 61 changed files with 2,127 additions and 605 deletions.
127 changes: 127 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
{
"projectName": "Times-up-flutter",
"projectOwner": "JordyHers-org",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"emoji": "✨🚀",
"imageSize": 70,
"commit": true,
"commitConvention": "atom",
"contributors": [
{
"login": "JordyHers",
"name": "Jordy Hershel Igondjo",
"avatar_url": "https://avatars.githubusercontent.com/u/49708438?v=4",
"profile": "https://jordyhers.com/#/",
"contributions": [
"code"
]
},
{
"login": "i-am-ijaz",
"name": "Muhammad Ijaz",
"avatar_url": "https://avatars.githubusercontent.com/u/25157495?v=4",
"profile": "https://github.com/i-am-ijaz",
"contributions": [
"code"

]
},
{
"login": "bhoomikshetty",
"name": "Bhoomik Shetty",
"avatar_url": "https://avatars.githubusercontent.com/u/76581406?v=4",
"profile": "https://github.com/bhoomikshetty",
"contributions": [
"code"
]
},
{
"login": "tarunsamanta2k20",
"name": "Tarun Samanta",
"avatar_url": "https://avatars.githubusercontent.com/u/55488549?v=4",
"profile": "https://github.com/tarunsamanta2k20",
"contributions": [
"code"
]
},
{
"login": "anthonycodes1",
"name": "Mmegwa Anthony ",
"avatar_url": "https://avatars.githubusercontent.com/u/106021539?v=4",
"profile": "https://github.com/anthonycodes1",
"contributions": [
"code"
]
},
{
"login": "gantanikhilraj",
"name": "Nikhil Raj",
"avatar_url": "https://avatars.githubusercontent.com/u/112814295?v=4",
"profile": "https://github.com/gantanikhilraj",
"contributions": [
"code"
]
},
{
"login": "darshsingh116",
"name": "Darsh Singh",
"avatar_url": "https://avatars.githubusercontent.com/u/116330695?v=4",
"profile": "https://github.com/darshsingh116",
"contributions": [
"code"
]
},
{
"login": "mehrozezaidi",
"name": "mehrozezaidi",
"avatar_url": "https://avatars.githubusercontent.com/u/82540918?v=4",
"profile": "https://github.com/mehrozezaidi",
"contributions": [
"code"
]
},
{
"login": "siddesh3101",
"name": "Siddesh Shetty",
"avatar_url": "https://avatars.githubusercontent.com/u/84890369?v=4",
"profile": "https://github.com/siddesh3101",
"contributions": [
"code"
]
},

{
"login": "ZakareyaAlatoli",
"name": "Zakareya Alatoli",
"avatar_url": "https://avatars.githubusercontent.com/u/68600115?v=4",
"profile": "https://zakareyaalatoli.github.io/",
"contributions": [
"code"
]
},
{
"login": "ckelwin",
"name": "Chan Kelwin Hillary",
"avatar_url": "https://avatars.githubusercontent.com/u/5429312?v=4",
"profile": "https://github.com/ckelwin",
"contributions": [
"code"
]
},
{
"login": "verkit",
"name": "Verdy Bangkit",
"avatar_url": "https://avatars.githubusercontent.com/u/23150948?v=4",
"profile": "https://github.com/verkit",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 5,
"linkToUsage": true
}
1 change: 0 additions & 1 deletion .fvm/flutter_sdk

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/dart.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.7.12
flutter-version: 3.10.0

- name: Install Dependencies
run: flutter pub get
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.7.12
flutter-version: 3.10.0

- name: Install Dependencies
run: flutter pub get
Expand All @@ -60,7 +60,7 @@ jobs:
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.7.12
flutter-version: 3.10.0

- name: Install Dependencies
run: flutter pub get
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.7.12
flutter-version: 3.10.0

- name: Install Dependencies
run: flutter pub get
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.7.12
flutter-version: 3.10.0

- name: Install Dependencies
run: flutter pub get
Expand All @@ -60,7 +60,7 @@ jobs:
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.7.12
flutter-version: 3.10.0

- name: Install Dependencies
run: flutter pub get
Expand Down
128 changes: 128 additions & 0 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
name: PR Review

on:
pull_request:
branches:
- dev
- test
- stage
- master
types:
- opened
- synchronize

workflow_dispatch:

concurrency:
group: review-${{ github.base_ref }}-${{ github.head_ref }}
cancel-in-progress: true

permissions:
contents: read
actions: read
checks: write

jobs:

branch-naming-check:
name: Branch Naming Check
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Check branch naming
run: |
branch_name="${{ github.event.pull_request.head.ref }}"
regex="^(feature|bugfix|hotfix|chore|merge|MERGE)\/[a-zA-Z0-9\-]+$"
if [[ ! $branch_name =~ $regex && "$branch_name" != "master" && "$branch_name" != "dev" ]]; then
echo "error: Branch name does not follow naming convention"
echo "Please follow the correct format: <category>/<description-in-kebab-case>"
echo "Example: feature/sc-3000-create-new-button-component or chore/my-feature"
exit 1
fi
review:
name: Review Flutter PR
runs-on: ubuntu-latest
needs: [branch-naming-check]
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

steps:
- name: Checkout repository
uses: actions/checkout@v3

- uses: subosito/flutter-action@v2
with:
flutter-version: "3.10.0"
channel: "stable"
cache: true

- name: Flutter Version
run: flutter --version

- name: Update Firebase CLI
run: npm install -g firebase-tools

- name: Debug Firebase CLI
run: firebase --version

- uses: w9jds/setup-firebase@main
with:
tools-version: 11.21.0
firebase_token: ${{ secrets.FIREBASE_TOKEN }}

- name: Prepare firebase
run: |
dart pub global activate flutterfire_cli
- name: Print firebase cli logs
run: cat firebase-debug.log
if: failure()

- name: Install dependencies
run: flutter pub get

- name: Check format lib
run: dart format .

- name: Generate
run: flutter pub run build_runner build --delete-conflicting-outputs

- name: Analyze
run: flutter analyze

- name: Run tests
run: |
mkdir reports
flutter test --reporter=json > reports/test-results.json
if: success() || failure()

- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: "Unit Tests"
reporter: 'flutter-json'
path: 'reports/test-results.json'

- name: Check genhtml installation
run: |
if ! command -v genhtml &> /dev/null; then
echo "genhtml not found. Installing lcov package..."
sudo apt-get update
sudo apt-get install lcov
fi
continue-on-error: true

- name: Check sed installation
run: |
if ! command -v sed &> /dev/null; then
echo "sed not found. Installing sed..."
sudo apt-get update
sudo apt-get install sed
fi
continue-on-error: true
Loading

0 comments on commit 11aa929

Please sign in to comment.