Skip to content

Commit

Permalink
👷 Reusable bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Nov 7, 2023
1 parent e9804d1 commit 9443ccd
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 17 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci_reuse_bootstrap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI Reusable Bootstrap

on:
workflow_call:
inputs:
flutter-version:
required: true
type: string

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/[email protected]
with:
cache: true
flutter-version: ${{ inputs.flutter-version == 'min' && '2.8.0' || '' }}
channel: ${{ inputs.flutter-version == && 'min' || inputs.flutter-version }}
- run: |
chmod +x ./scripts/prepare_pinning_certs.sh
./scripts/prepare_pinning_certs.sh
shell: bash
- name: Install proxy for tests
run: sudo apt-get install -y squid
- run: dart pub get
- uses: bluefireteam/melos-action@v2
with:
run-bootstrap: false
- run: melos run files-patch
- run: melos run pre-bootstrap
19 changes: 2 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,7 @@ jobs:
matrix:
sdk: [ min, stable, beta ]
steps:
- uses: actions/checkout@v3
- uses: subosito/[email protected]
- uses: ./ci_reuse_bootstrap.yml
with:
cache: true
flutter-version: ${{ matrix.sdk == 'min' && '2.8.0' || '' }}
channel: ${{ matrix.sdk == 'min' && '' || matrix.channel }}
- run: |
chmod +x ./scripts/prepare_pinning_certs.sh
./scripts/prepare_pinning_certs.sh
shell: bash
- name: Install proxy for tests
run: sudo apt-get install -y squid
- run: dart pub get
- uses: bluefireteam/melos-action@v2
with:
run-bootstrap: false
- run: melos run files-patch
- run: melos run pre-bootstrap
flutter-version: ${{ matrix.sdk }}
- run: melos run github-ci

0 comments on commit 9443ccd

Please sign in to comment.