From 8f4ce3b4e7e4f2a67e1d7b66108151ef5e6dd11e Mon Sep 17 00:00:00 2001 From: Xavier Chanthavong Date: Wed, 13 Sep 2023 12:20:43 +0800 Subject: [PATCH 1/2] ci: Create melos_bootstrap.yaml --- .github/workflows/melos_bootstrap.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/melos_bootstrap.yaml diff --git a/.github/workflows/melos_bootstrap.yaml b/.github/workflows/melos_bootstrap.yaml new file mode 100644 index 00000000..2a228e30 --- /dev/null +++ b/.github/workflows/melos_bootstrap.yaml @@ -0,0 +1,16 @@ +name: 'Melos bootstrap' +on: [pull_request] + +permissions: + contents: read + +jobs: + melos-bootstrap: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f # v1.5.0 + - name: dart pub get + run: dart pub get + - name: Do melos bootstrap + run: dart run melos bootstrap From 249d031aca8e702f6d7f9d564b9ffc8d094b1697 Mon Sep 17 00:00:00 2001 From: Xavier Chanthavong Date: Wed, 13 Sep 2023 12:27:16 +0800 Subject: [PATCH 2/2] ci: Use flutter for melos_bootstrap.yaml --- .github/workflows/melos_bootstrap.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/melos_bootstrap.yaml b/.github/workflows/melos_bootstrap.yaml index 2a228e30..b346f7cd 100644 --- a/.github/workflows/melos_bootstrap.yaml +++ b/.github/workflows/melos_bootstrap.yaml @@ -9,8 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 - - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f # v1.5.0 - - name: dart pub get - run: dart pub get + - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # v2.10.0 + with: + channel: "stable" + - name: flutter pub get + run: flutter pub get - name: Do melos bootstrap run: dart run melos bootstrap