Skip to content

Commit

Permalink
Updated Dart CI and Dart Formatting GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
beanbeanjuice committed Dec 7, 2024
1 parent e9ecad8 commit a0f2ca8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,21 @@ jobs:
runs-on: ubuntu-22.04

steps:
- name: Setup Dart SDK Step 1
- name: Update APT Repositories
run: sudo apt-get update
- name: Setup Dart SDK Step 2
- name: Install apt-transport-https
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: 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: PATH="$PATH:/usr/lib/dart/bin" dart pub get
run: dart pub get
- name: Run tests
run: PATH="$PATH:/usr/lib/dart/bin" dart run build_runner test
run: dart run build_runner test

fail_if_pull_request_is_draft:
if: github.event.pull_request.draft == true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dart_formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- 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.4.4
run: sudo apt-get update && sudo apt-get install dart=3.5.4
- uses: actions/checkout@v4
- name: Install dependencies
run: dart pub get
Expand Down

0 comments on commit a0f2ca8

Please sign in to comment.