Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add melos bootstrap action #1576

Merged
merged 9 commits into from
Oct 2, 2023
7 changes: 5 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ updates:
- package-ecosystem: "docker"
directory: "/tools/build_virtual_environment/ve_base"
schedule:
interval: "daily"
interval: "daily"
- package-ecosystem: "docker"
directory: "/packages/at_root_server"
schedule:
interval: "daily"
- package-ecosystem: "pub"
directory: "/packages/at_root_server"
schedule:
interval: "daily"
- package-ecosystem: "pub"
directory: "/packages/at_secondary_server"
schedule:
Expand All @@ -30,4 +34,3 @@ updates:
directory: "/tools" # Location of package manifests
schedule:
interval: "daily"

28 changes: 28 additions & 0 deletions .github/workflows/melos_bootstrap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Melos bootstrap"
on:
workflow_dispatch:
inputs:
melos_args:
description: "Melos arguments"
required: false
default: '--ignore="at_root_server" --ignore="at_secondary"'
pull_request:

permissions:
contents: read

env:
default_melos_args: '--ignore="at_root_server" --ignore="at_secondary"'

jobs:
melos-bootstrap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- 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 ${{ github.events.inputs.melos_args || env.default_melos_args }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build/

# If you're building an application, you may want to check-in your pubspec.lock
pubspec.lock
pubspec_overrides.yaml # melos
pubspec_overrides.yaml

# Directory created by dartdoc
# If you don't generate documentation locally you can remove this line.
Expand Down
12 changes: 9 additions & 3 deletions melos.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: at_server

packages:
- packages/**
- packages/*
- packages/*/example

- tests/**
- tools/build_virtual_environment/install_PKAM_Keys
- tests/*
- tools/build_virtual_environment/install_PKAM_Keys

command:
bootstrap:
hooks:
pre: dart pub get -C tests/at_functional_test