chore: fix analyzer issues #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Example | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
cancel-timeout-minutes: 60 | |
strategy: | |
matrix: | |
example: [docker, capella] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Dart | |
uses: dart-lang/setup-dart@v1 | |
- name: Install Melos | |
run: dart pub global activate melos | |
- name: Install dependencies | |
run: melos bootstrap | |
- name: Wait for publishing of couchbase package | |
run: melos waitForPublishing | |
- name: Run docker example | |
if: matrix.example == 'docker' | |
run: | | |
docker build -t couchbase-example packages/couchbase/example | |
melos initCouchbaseServer | |
docker run --network host couchbase-example | |
- name: Run capella example | |
if: matrix.example == 'capella' | |
working-directory: packages/couchbase/example | |
run: | | |
dart run couchbase install | |
dart run bin/capella.dart |