Skip to content

Commit a4904c3

Browse files
refactor: Reorganized files in new subdir packages/cli_tools (#54)
1 parent 98d592b commit a4904c3

File tree

99 files changed

+21
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+21
-7
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,47 @@ jobs:
1414
strategy:
1515
matrix:
1616
dart: [3.3, 3.6]
17+
package: [cli_tools]
1718
runs-on: ubuntu-latest
1819
steps:
1920
- uses: actions/checkout@v4
2021
- uses: dart-lang/[email protected]
2122
with:
2223
sdk: ${{ matrix.dart }}
23-
- name: Verify formatting
24+
- name: Verify formatting ${{ matrix.package }}
2425
run: dart format --output=none --set-exit-if-changed .
26+
working-directory: packages/${{ matrix.package }}
27+
2528
dart_analyze:
2629
name: Dart Analyze
2730
strategy:
2831
matrix:
2932
dart: [3.3, 3.6]
33+
package: [cli_tools]
3034
runs-on: ubuntu-latest
3135
steps:
3236
- uses: actions/checkout@v4
3337
- uses: dart-lang/[email protected]
3438
with:
3539
sdk: ${{ matrix.dart }}
36-
- run: dart pub get
37-
- run: dart analyze --fatal-infos
40+
- name: Dart get and analyze ${{ matrix.package }}
41+
run: |
42+
dart pub get
43+
dart analyze --fatal-infos
44+
working-directory: packages/${{ matrix.package }}
45+
3846
dart_test:
3947
name: Dart Test
4048
strategy:
4149
matrix:
4250
dart: [3.3, 3.6]
51+
package: [cli_tools]
4352
runs-on: ubuntu-latest
4453
steps:
4554
- uses: actions/checkout@v4
4655
- uses: dart-lang/[email protected]
4756
with:
4857
sdk: ${{ matrix.dart }}
49-
- run: dart test
58+
- name: Dart test ${{ matrix.package }}
59+
run: dart test
60+
working-directory: packages/${{ matrix.package }}

.github/workflows/publish.yaml renamed to .github/workflows/publish-cli_tools.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ name: Publish CLI Tools
33
on:
44
push:
55
tags:
6-
- 'v[0-9]+.[0-9]+.[0-9]+*' # Matches tags like v1.2.3 and v1.2.3-pre.1
6+
# Matches tags like cli_tools-v1.2.3 and cli_tools-v1.2.3-pre.1
7+
- 'cli_tools-v[0-9]+.[0-9]+.[0-9]+*'
78

89
jobs:
910
publish:
1011
permissions:
1112
id-token: write
1213
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
14+
with:
15+
working-directory: packages/cli_tools
File renamed without changes.
File renamed without changes.

PUBLISH.md renamed to packages/cli_tools/PUBLISH.md

Lines changed: 2 additions & 2 deletions
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)