Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add publish dry run to action #23

Merged
merged 5 commits into from
Oct 8, 2024
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
8 changes: 5 additions & 3 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ jobs:

- name: Pub cache
uses: actions/cache@v4
env:
cache-name: root
with:
path: .pub-cache
key: pub-cache-${{ hashFiles('**/pubspec.lock') }}
restore-keys: pub-cache-
path: ${{ env.PUB_CACHE }}
key: ${{ env.cache-name }}-${{ hashFiles('**/pubspec.lock') }}
restore-keys: ${{ env.cache-name }}-

- name: Homebrew cache
uses: actions/cache@v4
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/pana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
strategy:
matrix:
package: [vrchat_dart, vrchat_dart_generated]
defaults:
run:
working-directory: ${{ matrix.package }}
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
Expand All @@ -23,14 +26,16 @@ jobs:
- name: Pub cache
uses: actions/cache@v4
env:
cache-name: pub-cache
cache-name: ${{ matrix.package }}
with:
path: ${{ env.PUB_CACHE }}
key: ${{ env.cache-name }}-${{ hashFiles('**/pubspec.lock') }}
restore-keys: ${{ env.cache-name }}-
- name: Pub get
run: dart pub get
- name: Publish dry run
run: dart pub publish --dry-run
- name: Run pana
run: |
cd ${{ matrix.package }}
dart pub get
dart pub global activate pana
pana --no-warning --exit-code-threshold 0
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Pub cache
uses: actions/cache@v4
env:
cache-name: pub-cache
cache-name: vrchat_dart
with:
path: ${{ env.PUB_CACHE }}
key: ${{ env.cache-name }}-${{ hashFiles('**/pubspec.lock') }}
Expand Down
5 changes: 5 additions & 0 deletions vrchat_dart_generated/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ dev_dependencies:
build_runner: ^2.4.10
json_serializable: ^6.1.5
lints: ^5.0.0

false_secrets:
- /doc/APIConfig.md
- /lib/src/model/api_config.dart
- /lib/src/model/api_config.g.dart