Skip to content

Commit

Permalink
bump actions
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 committed Oct 13, 2024
1 parent 53feeda commit 1c766b4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/dry_run_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: Analyze and Test
on: [push]

env:
FLUTTER_VERSION: 2.x

jobs:
analyze:
runs-on: ubuntu-latest
name: Dart Analyze
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '2.x'
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: 'any'
- run: flutter pub get
- run: flutter analyze
Expand All @@ -18,10 +21,10 @@ jobs:
runs-on: ubuntu-latest
name: Flutter Test
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '2.x'
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: 'any'

- run: flutter pub get
Expand All @@ -32,7 +35,7 @@ jobs:
name: Dart package score

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: axel-op/dart-package-analyzer@v3
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -42,10 +45,10 @@ jobs:
name: Dart Publish Package Test
needs: tests
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '2.x'
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: 'any'

- run: flutter pub publish --dry-run
8 changes: 4 additions & 4 deletions .github/workflows/publish_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
name: Dart Analyze

steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- run: flutter pub get
- run: flutter analyze
score:
runs-on: ubuntu-latest
name: Dart package score

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: axel-op/dart-package-analyzer@v3
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -31,7 +31,7 @@ jobs:
name: Dart Publish Package
needs: analyze
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Setup credentials
run: |
mkdir -p ~/.pub-cache
Expand Down

0 comments on commit 1c766b4

Please sign in to comment.