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

refactor: move spdx_license brick under tool #828

Merged
merged 2 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ updates:
schedule:
interval: "daily"
- package-ecosystem: "pub"
directory: "/bricks/spdx_license/hooks"
directory: "/tool/spdx_license/hooks"
schedule:
interval: "daily"
- package-ecosystem: "pub"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/spdx_license.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ on:
push:
paths:
- .github/workflows/spdx_license.yaml
- "bricks/spdx_license/**"
- "tool/spdx_license/**"
branches:
- main
pull_request:
paths:
- .github/workflows/spdx_license.yaml
- "bricks/spdx_license/**"
- "tool/spdx_license/**"
branches:
- main

jobs:
build_hooks:
defaults:
run:
working-directory: bricks/spdx_license/hooks
working-directory: tool/spdx_license/hooks
runs-on: ubuntu-latest
steps:
- name: πŸ“š Git Checkout
Expand Down Expand Up @@ -50,12 +50,12 @@ jobs:
- name: πŸ“Š Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v2.1.0
with:
path: bricks/spdx_license/hooks/coverage/lcov.info
path: tool/spdx_license/hooks/coverage/lcov.info

build_brick:
defaults:
run:
working-directory: bricks/spdx_license
working-directory: tool/spdx_license
runs-on: ubuntu-latest
steps:
- name: πŸ“š Git Checkout
Expand All @@ -70,7 +70,7 @@ jobs:
run: dart pub get

- name: 🧱 Mason make
# If this step fails, you may need to run the following command (from bricks/spdx_license):
# If this step fails, you may need to run the following command (from tool/spdx_license):
# ```sh
# mason make spdx_license --licenses "[]" -o test --on-conflict overwrite
# ```
Expand Down
2 changes: 1 addition & 1 deletion mason.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
bricks:
spdx_license:
path: bricks/spdx_license
path: tool/spdx_license
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ To develop for Very Good CLI's SPDX License brick, you will also need to become

### Setting up your local development environment

1. Install a valid [Dart SDK](https://dart.dev/get-dart) in your local environment. Compatible Dart SDK versions with the SPDX license brick can be found [here](https://github.com/VeryGoodOpenSource/very_good_cli/blob/main/bricks/spdx_license/hooks/pubspec.yaml). If you have Flutter installed you likely have a valid Dart SDK version already installed.
1. Install a valid [Dart SDK](https://dart.dev/get-dart) in your local environment. Compatible Dart SDK versions with the SPDX license brick can be found [here](https://github.com/VeryGoodOpenSource/very_good_cli/blob/main/tool/spdx_license/hooks/pubspec.yaml). If you have Flutter installed you likely have a valid Dart SDK version already installed.

2. Install [Mason](https://github.com/felangel/mason/tree/master/packages/mason_cli#installation) in your local environment:

Expand All @@ -22,14 +22,14 @@ dart pub global activate mason_cli
3. Get hooks' dependencies:

```sh
# πŸͺ Get hooks' dependencies (from bricks/spdx_license/hooks)
# πŸͺ Get hooks' dependencies (from tool/spdx_license/hooks)
dart pub get
```

4. Run all hook's tests:

```sh
# πŸ§ͺ Test all hook's (from bricks/spdx_license/hooks)
# πŸ§ͺ Test all hook's (from tool/spdx_license/hooks)
dart test
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This package should always match [PANA's](https://github.com/dart-lang/pana/blob

## Usage

1. Install a valid [Dart SDK](https://dart.dev/get-dart) in your local environment. Compatible Dart SDK versions with the SPDX license brick can be found [here](https://github.com/VeryGoodOpenSource/very_good_cli/blob/main/bricks/spdx_license/hooks/pubspec.yaml). If you have Flutter installed you likely have a valid Dart SDK version already installed.
1. Install a valid [Dart SDK](https://dart.dev/get-dart) in your local environment. Compatible Dart SDK versions with the SPDX license brick can be found [here](https://github.com/VeryGoodOpenSource/very_good_cli/blob/main/tool/spdx_license/hooks/pubspec.yaml). If you have Flutter installed you likely have a valid Dart SDK version already installed.

2. Install [Mason](https://github.com/felangel/mason/tree/master/packages/mason_cli#installation) in your local environment:

Expand Down
File renamed without changes.
File renamed without changes.