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
51 changes: 26 additions & 25 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
generator:
runs-on: ubuntu-22.04
container:
image: dart:2.17.6
image: dart:2.18.5
steps:
- uses: actions/checkout@v3
- name: Install ObjectBox C-API
Expand All @@ -31,7 +31,7 @@ jobs:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: 3.0.5
flutter-version: 3.3.9
cache: true
- run: ./tool/init.sh

Expand All @@ -44,9 +44,9 @@ jobs:
- macos-11
- ubuntu-22.04
sdk:
- 2.18.5
- 2.17.6
- 2.16.2
- 2.15.1
- 2.14.0 # currently the lowest fully supported version (i.e. generator + lib)
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -64,26 +64,27 @@ jobs:
../tool/pub.sh run build_runner build
../tool/pub.sh run test

valgrind:
runs-on: ubuntu-22.04
steps:
- uses: dart-lang/setup-dart@v1
with:
sdk: 2.17.6
- uses: actions/checkout@v3
- name: Install ObjectBox C-API
run: ./install.sh
- name: Install Valgrind
run: ./tool/apt-install.sh valgrind
- name: Test
working-directory: objectbox
# let tests know we want a faster/shorter version, if available (to prevent timeouts in CI)
env:
TEST_SHORT: 1
run: |
../tool/pub.sh get
../tool/pub.sh run build_runner build
./tool/valgrind.sh
# Temporarily disabled, see internal issue.
# valgrind:
# runs-on: ubuntu-22.04
# steps:
# - uses: dart-lang/setup-dart@v1
# with:
# sdk: 2.18.5
# - uses: actions/checkout@v3
# - name: Install ObjectBox C-API
# run: ./install.sh
# - name: Install Valgrind
# run: ./tool/apt-install.sh valgrind
# - name: Test
# working-directory: objectbox
# # let tests know we want a faster/shorter version, if available (to prevent timeouts in CI)
# env:
# TEST_SHORT: 1
# run: |
# ../tool/pub.sh get
# ../tool/pub.sh run build_runner build
# ./tool/valgrind.sh

flutter-integration-test:
strategy:
Expand All @@ -93,10 +94,10 @@ jobs:
- macos-11
- ubuntu-22.04
flutter-version:
- 3.0.5
- 3.3.9
- 2.5.0 # currently the lowest fully supported version (i.e. generator + lib)
include:
- flutter-version: 3.0.5 # Flutter 2.9 and newer need Visual Studio 2022 to build desktop.
- flutter-version: 3.3.9 # Flutter 2.9 and newer need Visual Studio 2022 to build desktop.
os: windows-2022
- flutter-version: 2.5.0 # Flutter 2.8.1 and older need Visual Studio 2019 to build desktop.
os: windows-2019
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
analyze:
runs-on: ubuntu-22.04
container:
image: dart:2.17.6
image: dart:2.18.5
steps:
- uses: actions/checkout@v3
- run: dart run build_runner build
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: 3.0.5
flutter-version: 3.3.9
cache: true
- name: Generate test coverage
working-directory: objectbox
Expand Down
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ stages:
variables:
# Note: use specific tags as docker images may not always be pulled due to "if-not-present" pull policy.
# Thus, do not use tags like latest/beta, but check https://hub.docker.com/_/dart?tab=tags for latest.
DART_VERSION: '2.17.6'
DART_VERSION: '2.18.5'

# Make PUB_CACHE cacheable in GitLab;
# see also https://gitlab.com/gitlab-org/gitlab/-/merge_requests/77791/diffs and
Expand Down Expand Up @@ -68,4 +68,4 @@ test-lib:linux:x64:
# Note: use specific tags as docker images may not always be pulled due to "if-not-present" pull policy.
# Thus, do not use tags like latest/beta, but check https://hub.docker.com/_/dart?tab=tags for latest.
# Always include lowest supported version (see sdk key in objectbox and generator pubspec.yaml).
- DART_VERSION: [ '2.14', '2.15.1', '2.16.1', '2.16.2', '2.17.6' ]
- DART_VERSION: [ '2.14', '2.16.2', '2.17.6', '2.18.5' ]