Skip to content
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
32 changes: 28 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,52 @@ on:
pull_request:
branches: [main]

permissions:
contents: read
checks: write

jobs:
ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: subosito/flutter-action@v2
with:
flutter-version: '3.41.6'
channel: stable
cache: true

- uses: actions/cache@v4
- uses: actions/cache@v6
with:
path: ~/.pub-cache
key: pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: pub-

- name: Install dependencies
run: flutter pub get
run: flutter pub get --enforce-lockfile

- name: Analyze
run: flutter analyze --no-fatal-infos

- name: Unit tests
run: flutter test
run: |
mkdir -p test-results
flutter test --file-reporter=json:test-results/unit-tests.json

- name: Upload test result JSON
if: always()
uses: actions/upload-artifact@v7
with:
name: unit-test-results
path: test-results/*.json
if-no-files-found: warn

- name: Publish test report
if: always()
uses: dorny/test-reporter@v3
with:
name: Unit tests
path: 'test-results/*.json'
reporter: flutter-json
4 changes: 3 additions & 1 deletion .github/workflows/remote-engine-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ jobs:

- uses: subosito/flutter-action@v2
with:
flutter-version: '3.41.6'
channel: stable
cache: true

- uses: actions/cache@v6
with:
Expand All @@ -55,7 +57,7 @@ jobs:
restore-keys: pub-

- name: Install dependencies
run: flutter pub get
run: flutter pub get --enforce-lockfile

- name: Build scoreboard Docker image
run: ./scripts/build-scoreboard-images.sh --versions "${{ matrix.version }}"
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Miscellaneous
*.class
*.lock
!pubspec.lock
*.log
*.pyc
*.swp
.buildlog/
.history

.idea/
*.iml

# Flutter repo-specific
/bin/cache/
Expand Down Expand Up @@ -123,4 +125,4 @@ vendor/
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
!/dev/ci/**/Gemfile.lock
!/dev/ci/**/Gemfile.lock
10 changes: 0 additions & 10 deletions .idea/.gitignore

This file was deleted.

31 changes: 0 additions & 31 deletions .idea/libraries/Dart_SDK.xml

This file was deleted.

15 changes: 0 additions & 15 deletions .idea/libraries/KotlinJavaRuntime.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/modules.xml

This file was deleted.

31 changes: 0 additions & 31 deletions android/roller_derby_scoreboard_flutter_android.iml

This file was deleted.

Loading