Skip to content

Commit 9a67b81

Browse files
committed
feat: add workflow pubdry check for pubdev
1 parent 6792183 commit 9a67b81

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

.github/workflows/pub-dry-run.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Software Name: OUDS Flutter
2+
# SPDX-FileCopyrightText: Copyright (c) Orange SA
3+
# SPDX-License-Identifier: MIT
4+
#
5+
# This software is distributed under the MIT license,
6+
# the text of which is available at https://opensource.org/license/MIT/
7+
# or see the "LICENSE" file for more details.
8+
#
9+
# Software description: Flutter library of reusable graphical components
10+
11+
name: Pub.dev Dry Run
12+
13+
on:
14+
push:
15+
branches-ignore:
16+
- main
17+
pull_request:
18+
branches:
19+
- develop
20+
workflow_dispatch:
21+
22+
permissions:
23+
contents: read
24+
25+
jobs:
26+
pub-dry-run:
27+
name: Validate packages for pub.dev
28+
runs-on: ubuntu-latest
29+
30+
permissions:
31+
contents: read
32+
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
package:
37+
- ouds_core
38+
- ouds_global_raw_tokens
39+
- ouds_theme_contract
40+
- ouds_theme_orange
41+
- ouds_theme_orange_compact
42+
- ouds_theme_sosh
43+
- ouds_theme_wireframe
44+
45+
steps:
46+
- name: Checkout repository
47+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
48+
with:
49+
fetch-depth: 0
50+
51+
- name: Setup environment
52+
uses: ./.github/actions/setup
53+
54+
- name: Validate ${{ matrix.package }}
55+
run: |
56+
cd ${{ matrix.package }}
57+
echo "📦 Running pub publish --dry-run for ${{ matrix.package }}..."
58+
flutter pub publish --dry-run
59+

0 commit comments

Comments
 (0)