-
Notifications
You must be signed in to change notification settings - Fork 9
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
Using custom Flutter channel (beta, master, dev) #5
Comments
Hi, You're right, my action doesn't handle other branches than To do what you want to do, you need to set up your own container with Flutter, and to copy this repository in it. Try this: package-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set path
run: |
echo "::add-path::$HOME/flutter/bin"
echo "::add-path::$HOME/flutter/bin/cache/dart-sdk/bin"
echo "::add-path::$HOME/.pub-cache/bin"
- name: Install Flutter and Pana
env:
# The Flutter channel you want to use
CHANNEL: beta
run: |
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends unzip
git clone https://github.com/flutter/flutter.git -b $CHANNEL $HOME/flutter
flutter doctor
flutter pub global activate pana
- name: Run Dart Package Analyzer
env:
INPUT_GITHUBTOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUT_MINANNOTATIONLEVEL: info
run: |
git clone https://github.com/axel-op/dart-package-analyzer.git -b stable $HOME/dart-package-analyzer
cd $HOME/dart-package-analyzer/app
flutter pub get
dart bin/main.dart
- name: Check scores
# ... |
I would be happy if you can add this as a feature to your package. |
Well, did you try what I suggested? Just do a copy/paste. |
Does this even make sense for package analysis? I mean Pub only tests on |
@creativecreatorormaybenot Yeah exactly! |
Btw @Dogacel since I have no answer from you I'm gonna close this issue. |
I am trying to use dart-package-analyzer in github actions with a beta version of flutter but I am getting the following issue:
Issues
General
pubspec.yaml
Running flutter pub upgrade failed with the following output:
and I also get
20.0 points
The analysis could not detect a valid SDK that can use this package.
and this is my workflow file
This is not much different from the default version. Can you help me with this?
The text was updated successfully, but these errors were encountered: