Skip to content

Commit

Permalink
Merge pull request #1576 from atsign-foundation/melos-bootstrap-action
Browse files Browse the repository at this point in the history
ci: add melos bootstrap action
  • Loading branch information
XavierChanth authored Oct 2, 2023
2 parents 78cced6 + 442bba8 commit a59d664
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 6 deletions.
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

0 comments on commit a59d664

Please sign in to comment.