Skip to content

Commit 53adf6e

Browse files
committed
👷 Update all workflows
1 parent 4598889 commit 53adf6e

File tree

6 files changed

+98
-63
lines changed

6 files changed

+98
-63
lines changed

.github/workflows/pub_publish.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/pub_publish_dry_run.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/pub_publish_manually.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v4
14+
- name: Publish
15+
uses: k-paxian/dart-package-publisher@master
16+
with:
17+
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
18+
flutter: true
19+
skipTests: true

.github/workflows/publishable.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publishable
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
paths:
11+
- "**.md"
12+
- "**.yaml"
13+
- "**.yml"
14+
15+
jobs:
16+
publish-dry-run:
17+
name: Publish dry-run with packages
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: k-paxian/dart-package-publisher@master
22+
with:
23+
credentialJson: 'MockCredentialJson'
24+
flutter: true
25+
dryRunOnly: true
26+
skipTests: true

.github/workflows/runnable.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Runnable (stable)
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- "**.md"
9+
pull_request:
10+
branches:
11+
- main
12+
paths-ignore:
13+
- "**.md"
14+
15+
jobs:
16+
run:
17+
name: Analyze on ${{ matrix.os }}
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
matrix:
21+
os: [ macos-latest ]
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-java@v4
25+
with:
26+
distribution: 'zulu'
27+
java-version: '17'
28+
- uses: subosito/flutter-action@v2
29+
with:
30+
channel: 'stable'
31+
- name: Log Dart/Flutter versions
32+
run: |
33+
dart --version
34+
flutter --version
35+
- name: Prepare dependencies
36+
run: flutter pub get
37+
- name: Check Dart code formatting
38+
run: dart format . -o none --set-exit-if-changed
39+
- name: Analyze Dart code
40+
run: flutter analyze .
41+
- name: Run tests
42+
run: flutter test
43+
- name: Generate docs
44+
run: |
45+
dart pub global activate dartdoc
46+
dart pub global run dartdoc .
47+
- run: flutter pub get
48+
- name: Build Example (Android)
49+
run: cd example; flutter build apk --debug
50+
- name: Build Example (iOS)
51+
run: cd example; flutter build ios --no-codesign
52+
- name: Build Example (Web)
53+
run: cd example; flutter build web

0 commit comments

Comments
 (0)