Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DohaBeltagy committed Mar 11, 2024
2 parents 00ec566 + 54ac0ff commit a2dbac3
Show file tree
Hide file tree
Showing 9 changed files with 553 additions and 6 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Analayze PR

on:
pull_request:
branches: [main]

jobs:
analyze_build:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v2
- name: Install flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.13.2"
channel: "stable"
cache: true
- name: Check flutter version
run: flutter --version
- name: Run dart analyzer
run: flutter analyze
- name: Build the app
run: flutter build apk
29 changes: 29 additions & 0 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow executes several linters on changed files based on languages used in your code base whenever
# you push a code or open a pull request.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/github/super-linter
name: Lint Code Base

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
run-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: "main"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions threddit_app/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml

analyzer:
plugins:
- custom_lint

linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class _registerScreenState extends State<registerScreen> {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [

Text("Thredit",style: TextStyle(color: Colors.white),)
],
),
Expand Down
2 changes: 0 additions & 2 deletions threddit_app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ import 'package:threddit_app/features/user_system/view/regisiter_screen.dart';
void main() {
runApp(registerScreen());
}


Empty file.
Empty file.
Loading

0 comments on commit a2dbac3

Please sign in to comment.