Skip to content

Commit 11ec3c0

Browse files
committed
Rename and rebrand to mayr_validator with new structure
Renamed package from mayr_dart_validator to mayr_validator, updated all references, and restructured library and example files. Added comprehensive DESIGN.md, enhanced README with usage and features, introduced GitHub Actions workflows for CI and publishing, and updated pubspec.yaml with new metadata. Old files and tests were renamed or removed to match the new package structure. Create LICENSE
1 parent 2a6874d commit 11ec3c0

13 files changed

+866
-53
lines changed

.github/workflows/ci.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: ci
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
on:
8+
pull_request:
9+
branches:
10+
- main
11+
12+
# push:
13+
# branches:
14+
# - main
15+
16+
jobs:
17+
ci_checks:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: 📚 Git Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: 🐦 Setup Flutter
25+
uses: subosito/flutter-action@v2
26+
27+
- name: 📦 Install Dependencies
28+
run: flutter pub get
29+
30+
- name: Run tests
31+
run: flutter test
32+
33+
- name: ✨ Format
34+
run: dart format --set-exit-if-changed .
35+
36+
- name: 🔍 Analyze
37+
run: dart analyze --fatal-warnings .

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# .github/workflows/publish.yml
2+
name: Publish to pub.dev
3+
4+
on:
5+
push:
6+
tags:
7+
# must align with the tag-pattern configured on pub.dev, often just replace
8+
# {{version}} with [0-9]+.[0-9]+.[0-9]+
9+
- 'v[0-9]+.[0-9]+.[0-9]+' # tag-pattern on pub.dev: 'v{{version}}'
10+
# If you prefer tags like '1.2.3', without the 'v' prefix, then use:
11+
# - '[0-9]+.[0-9]+.[0-9]+' # tag-pattern on pub.dev: '{{version}}'
12+
# If your repository contains multiple packages consider a pattern like:
13+
# - 'my_package_name-v[0-9]+.[0-9]+.[0-9]+'
14+
15+
# Publish using the reusable workflow from dart-lang.
16+
jobs:
17+
publish:
18+
permissions:
19+
id-token: write # Required for authentication using OIDC
20+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
21+
# with:
22+
# working-directory: path/to/package/within/repository

0 commit comments

Comments
 (0)