Skip to content

Commit

Permalink
Calculating pub points prior to publishing pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
vmpay committed Jun 17, 2024
1 parent 8cda52d commit e4c9079
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: CI
name: Quality check

# Controls when the action will run.
on:
Expand Down Expand Up @@ -56,4 +56,12 @@ jobs:
# package:test for this step to succeed. Note that Flutter projects will
# want to change this to 'flutter test'.
- name: Run tests
run: dart test
run: dart test

# The pub.dev site uses the analysis tool pana to calculate pub points.
# This is run automatically on the pub.dev site whenever you publish a new package,
# or a new version of an existing package.
- name: Calculating pub points prior to publishing
run: |
dart pub global activate pana
dart pub global run pana --exit-code-threshold 0 --json
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ jobs:
- name: Run tests
run: dart test

- name: Calculating pub points prior to publishing
run: |
dart pub global activate pana
dart pub global run pana --exit-code-threshold 0 --json
publish:
needs: build
permissions:
Expand Down
10 changes: 1 addition & 9 deletions lib/src/models/realm/population_type_localised.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,7 @@ class PopulationTypeLocalised {
}

/// Enum representing the different types of population statuses for a realm.
enum PopulationType {
LOW,
MEDIUM,
FULL,
HIGH,
LOCKED,
RECOMMENDED,
OFFLINE
}
enum PopulationType { LOW, MEDIUM, FULL, HIGH, LOCKED, RECOMMENDED, OFFLINE }

/// A helper class to map population type values to and from strings.
final EnumValues<PopulationType> populationTypeValues =
Expand Down

0 comments on commit e4c9079

Please sign in to comment.