Test building newest sqlite version in CI

This commit is contained in:
Peter Leibiger 2021-05-25 14:24:48 +02:00
parent ec1ec98460
commit b1a78d6aff
No known key found for this signature in database
GPG Key ID: 855A3ADD4CC39135
1 changed files with 26 additions and 15 deletions

View File

@ -9,25 +9,35 @@ jobs:
moor:
name: "moor package"
runs-on: ubuntu-20.04
defaults:
run:
working-directory: moor
steps:
# setup
- uses: actions/checkout@v2
- uses: cedx/setup-dart@v2
- run: sudo apt-get install -y libsqlite3-dev
name: Install sqlite3 for tests
- name: Install sqlite3 for tests
run: |
mkdir sqlite
cd sqlite
curl https://sqlite.org/2021/sqlite-autoconf-3350500.tar.gz --output sqlite.tar.gz
tar zxvf sqlite.tar.gz
cd sqlite-autoconf-3350500
./configure
make
sudo make install
echo "/usr/local/lib" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=`pwd`/.libs" >> $GITHUB_ENV
- name: Check sqlite3 version
run: sqlite3 --version
- run: dart pub upgrade
working-directory: moor
# analysis
- run: dart format -o none --set-exit-if-changed moor/
- run: dart format -o none --set-exit-if-changed .
name: dartfmt
- run: dart analyze --fatal-infos --fatal-warnings
working-directory: moor/
# build, test and upload coverage
- run: dart run build_runner build --delete-conflicting-outputs
working-directory: moor
- run: dart test #-x background_isolate --coverage=coverage
working-directory: moor
# - uses: actions/upload-artifact@v2
# with:
# name: moor-coverage-data
@ -38,20 +48,24 @@ jobs:
moor_generator:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: moor_generator
steps:
# setup
- uses: actions/checkout@v2
- uses: cedx/setup-dart@v2
- run: dart pub upgrade
working-directory: moor_generator
# analysis
- run: dart format -o none --set-exit-if-changed moor_generator/
- run: dart format -o none --set-exit-if-changed .
name: dartfmt
- run: dart analyze --fatal-infos --fatal-warnings
working-directory: moor_generator/
sqlparser:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: sqlparser
steps:
# setup
- uses: actions/checkout@v2
@ -59,15 +73,12 @@ jobs:
- run: sudo apt-get install -y libsqlite3-dev
name: Install sqlite3 for tests
- run: dart pub upgrade
working-directory: sqlparser
# analysis
- run: dart format -o none --set-exit-if-changed sqlparser/
- run: dart format -o none --set-exit-if-changed .
name: dartfmt
- run: dart analyze --fatal-infos --fatal-warnings
working-directory: sqlparser/
# tests and coverage
- run: dart test #--coverage=coverage
working-directory: sqlparser
# - uses: actions/upload-artifact@v2
# with:
# name: sqlparser-coverage-data