Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 35 additions & 50 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2025 hexaTune LLC
# SPDX-License-Identifier: MIT

name: πŸ€– CI
name: πŸ€– Lint & Format

on:
pull_request:
Expand All @@ -10,63 +10,48 @@ on:
- main
- "release/**"

env:
PROJECT_DIR: hexagenapp

jobs:
fmt:
lint:
name: Check Formatting (hexaGenApp)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Check code formatting
run: cargo fmt -- --check

clippy:
name: Run Clippy Linter (hexaGenApp)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

- name: Install Rust
uses: actions-rs/toolchain@v1
- name: Setup Java (required by some Flutter tooling)
uses: actions/setup-java@v4
with:
toolchain: stable
override: true
distribution: temurin
java-version: "17"

- name: Run Clippy
run: cargo clippy --all-targets --all-features -- -D warnings

build:
name: Build Project (hexaGenApp)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
toolchain: stable
override: true
channel: "stable"
cache: true

- name: Build
run: cargo build --locked --all-targets

test:
name: Run Tests (hexaGenApp)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
- name: Cache Pub & .dart_tool
uses: actions/cache@v4
with:
toolchain: stable
override: true

- name: Run tests
run: cargo test --locked --all-targets
path: |
~/.pub-cache
${{ env.PROJECT_DIR }}/.dart_tool
key: pub-${{ runner.os }}-${{ hashFiles(format('{0}/pubspec.lock', env.PROJECT_DIR)) }}
restore-keys: |
pub-${{ runner.os }}-

- name: flutter pub get
working-directory: ${{ env.PROJECT_DIR }}
run: flutter pub get

- name: Check formatting
working-directory: ${{ env.PROJECT_DIR }}
run: dart format --output=none --set-exit-if-changed .

- name: Static analysis
working-directory: ${{ env.PROJECT_DIR }}
run: flutter analyze
2 changes: 1 addition & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
- name: Lint commits
uses: wagoid/commitlint-github-action@v5
with:
configFile: .commitlintrc.yml
configFile: .github/.commitlintrc.yml
failOnWarnings: true
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
<!--
SPDX-FileCopyrightText: 2025 hexaTune LLC
SPDX-License-Identifier: MIT
-->

# hexaGenApp

hexaGen Mobile App
18 changes: 17 additions & 1 deletion REUSE.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
version = 1

[[annotations]]
path = ["package.json", "CHANGELOG.md"]
path = ["package.json", "CHANGELOG.md", ".gitignore", "docs/CNAME"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2025 hexaTune LLC"
SPDX-License-Identifier = "MIT"

[[annotations]]
path = [
"hexagenapp/android/**",
"hexagenapp/ios/**",
"hexagenapp/linux/**",
"hexagenapp/web/**",
"hexagenapp/windows/**",
"hexagenapp/macos/**",
"hexagenapp/.gitignore",
"hexagenapp/.metadata",
"hexagenapp/test/**",
]
precedence = "aggregate"
SPDX-FileCopyrightText = "2025 hexaTune LLC"
SPDX-License-Identifier = "MIT"
Expand Down
5 changes: 5 additions & 0 deletions hexagenapp/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
SPDX-FileCopyrightText: 2025 hexaTune LLC
SPDX-License-Identifier: MIT
-->

# hexagenapp

A new Flutter project.
Expand Down
4 changes: 3 additions & 1 deletion hexagenapp/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2025 hexaTune LLC
# SPDX-License-Identifier: MIT

# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
Expand All @@ -23,6 +26,5 @@ linter:
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
3 changes: 3 additions & 0 deletions hexagenapp/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 hexaTune LLC
// SPDX-License-Identifier: MIT

import 'package:flutter/material.dart';

void main() {
Expand Down
6 changes: 4 additions & 2 deletions hexagenapp/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# SPDX-FileCopyrightText: 2025 hexaTune LLC
# SPDX-License-Identifier: MIT

name: hexagenapp
description: "A new Flutter project."
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
publish_to: "none" # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
Expand Down Expand Up @@ -51,7 +54,6 @@ dev_dependencies:

# The following section is specific to Flutter packages.
flutter:

# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
Expand Down