diff --git a/.github/workflows/dry_run_workflow.yml b/.github/workflows/dry_run_workflow.yml index 47bd2aa..2f12b4c 100644 --- a/.github/workflows/dry_run_workflow.yml +++ b/.github/workflows/dry_run_workflow.yml @@ -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 @@ -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 @@ -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 }} @@ -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 diff --git a/.github/workflows/publish_main.yml b/.github/workflows/publish_main.yml index 48a2113..66cfe98 100644 --- a/.github/workflows/publish_main.yml +++ b/.github/workflows/publish_main.yml @@ -10,8 +10,8 @@ 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: @@ -19,7 +19,7 @@ jobs: 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 }} @@ -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