Fixes #990 - Upgrade to Dart 3 #118
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dart Formatting | |
on: | |
pull_request: | |
types: [ opened, synchronize, reopened, ready_for_review ] | |
jobs: | |
check_formatting: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Update APT Repositories | |
run: sudo apt-get update | |
- name: Install apt-transport-https | |
run: sudo apt-get install apt-transport-https | |
- name: Download and Add Google Linux GPG Public Key | |
run: wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg | |
- name: Add Dart Repository | |
run: echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list | |
- name: Install Dart | |
run: sudo apt-get update && sudo apt-get install dart=3.5.4 | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: dart pub get | |
- name: Verify formatting | |
run: dart format -l 110 --output=none --set-exit-if-changed . | |
fail_if_pull_request_is_draft: | |
if: github.event.pull_request.draft == true | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Fails in order to indicate that pull request needs to be marked as ready to review and formatting workflow needs to pass. | |
run: exit 1 |