From acbce41786a5a2f79e4c1c7a98cd1da0de090aee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Overg=C3=A5rd=20Nielsen?= Date: Fri, 29 Mar 2024 13:08:03 +0100 Subject: [PATCH] Common setup script --- .github/workflows/setup-runner.yml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/setup-runner.yml diff --git a/.github/workflows/setup-runner.yml b/.github/workflows/setup-runner.yml new file mode 100644 index 000000000..ab9dad9cf --- /dev/null +++ b/.github/workflows/setup-runner.yml @@ -0,0 +1,38 @@ +name: Setup runner + +on: + workflow_call: + inputs: + runner: + description: Platforms to execute on. + required: true + type: string + flutter-version: + description: Flutter version to use. + type: string + default: stable + +jobs: + setup-runner: + runs-on: ${{ inputs.runner }} + steps: + - name: Puro + run: >- + which puro + || curl -o- https://puro.dev/install.sh | PURO_VERSION="1.4.5" bash + shell: bash + - run: puro upgrade-puro + - run: puro use ${{ inputs.flutter-version }} + + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: "recursive" + + - name: Melos + run: puro pub global activate melos + - run: melos bootstrap + - run: melos setup + + +