Skip to content

Commit

Permalink
Add CI sample (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy authored Mar 5, 2024
1 parent 5f50b7c commit cde6ca4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
dart pub get
- run: |
cd test
dart run test
dart run test
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,36 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/passsy/flutter_wrapper/mas
./flutterw run
```

### Using flutterw on CI

Here is an example of using flutterw on a CI server.

```bash
jobs:
linux:
runs-on: ubuntu-latest

container:
# Use container with pre-installed Flutter dependencies like unzip, libglu1-mesa
image: passsy/flutterw:base-0.4.1

steps:
- uses: actions/[email protected]
- run: ./flutterw doctor -v
- run: ./flutterw pub get
- run: ./flutterw test
- run: ./flutterw analyze --fatal-infos --fatal-warnings .

macos:
runs-on: macos-latest
steps:
- uses: actions/[email protected]
- run: ./flutterw doctor -v
- run: ./flutterw pub get
- run: ./flutterw test
- run: ./flutterw analyze --fatal-infos --fatal-warnings .
```

## License

```
Expand Down

0 comments on commit cde6ca4

Please sign in to comment.