Skip to content

Commit

Permalink
chore: add latest stable to nightly build (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
smallTrogdor authored Dec 17, 2024
1 parent c781fb9 commit 7228f02
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ on:
- main
types:
- closed
workflow_dispatch:

jobs:
create-tag:
runs-on: ubuntu-latest
if: (github.event.pull_request.merged && contains( github.event.pull_request.labels.*.name, 'autorelease')) || (github.event_name == 'workflow_dispatch')
if: (github.event.pull_request.merged && contains( github.event.pull_request.labels.*.name, 'autorelease'))
permissions:
contents: write

Expand Down
35 changes: 34 additions & 1 deletion .github/workflows/nightly-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,44 @@ name: Nightly built.
on:
workflow_dispatch:
schedule:
- cron: "20 2 * * *" # 02:20 am every day
- cron: "20 2 * * *" # 02:20 am every day

jobs:
test:
runs-on: macos-latest

steps:
- name: Checkout sbb_design_system_mobile code.
uses: actions/checkout@v4

- name: Clone flutter version specified in .fvm.
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true

- name: Run flutter doctor.
run: flutter doctor -v

- name: Install dependencies.
run: flutter pub get

- name: Run flutter test.
id: test
run: flutter test

- name: Upload goldens if tests fail.
uses: actions/upload-artifact@v4
if: ${{ failure() && steps.test.conclusion == 'failure' }}
with:
name: goldens
path: test/failures/
retention-days: 1

build-android:
name: Build Android
runs-on: ubuntu-latest
needs: [test]
defaults:
run:
working-directory: example
Expand All @@ -27,6 +59,7 @@ jobs:

build-iOS:
name: Build iOS
needs: [test]
runs-on: macos-latest
defaults:
run:
Expand Down

0 comments on commit 7228f02

Please sign in to comment.