Skip to content

Commit

Permalink
Update dart_formatting.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-doty committed Sep 13, 2024
1 parent 187dbb2 commit 15e1da1
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/dart_formatting.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Dart Formatting

on:
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
types: [ opened, synchronize, reopened, ready_for_review ]

jobs:
check_formatting:
Expand All @@ -11,27 +11,27 @@ jobs:
runs-on: ubuntu-22.04

steps:
- name: Setup Dart SDK Step 1
run: sudo apt-get update
- name: Setup Dart SDK Step 2
run: sudo apt-get install apt-transport-https
- name: Setup Dart SDK Step 3
run: sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
- name: Setup Dart SDK Step 4
run: sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
- name: Setup Dart SDK Step 5
run: wget -O /tmp/dart_2.13.4-1_amd64.deb https://storage.googleapis.com/dart-archive/channels/stable/release/2.13.4/linux_packages/dart_2.13.4-1_amd64.deb
- name: Setup Dart SDK Step 6
run: sudo apt install /tmp/dart_2.13.4-1_amd64.deb
- uses: actions/checkout@v3
- name: Install dependencies
run: PATH="$PATH:/usr/lib/dart/bin" pub get
- name: Verify formatting
run: dart format -l 110 --output=none --set-exit-if-changed .
- name: Setup Dart SDK Step 1
run: sudo apt-get update
- name: Setup Dart SDK Step 2
run: sudo apt-get install apt-transport-https
- name: Setup Dart SDK Step 3
run: sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
- name: Setup Dart SDK Step 4
run: sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
- name: Setup Dart SDK Step 5
run: wget -O /tmp/dart_2.19.6-1_amd64.deb https://storage.googleapis.com/dart-archive/channels/stable/release/2.19.6/linux_packages/dart_2.19.6-1_amd64.deb
- name: Setup Dart SDK Step 6
run: sudo apt install /tmp/dart_2.19.6-1_amd64.deb
- uses: actions/checkout@v3
- name: Install dependencies
run: PATH="$PATH:/usr/lib/dart/bin" 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
- 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

0 comments on commit 15e1da1

Please sign in to comment.