-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (25 loc) · 818 Bytes
/
workflow.yaml
File metadata and controls
29 lines (25 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Flutter-CI
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
# Flutter setup
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: stable
- name: "Enable web"
run: "flutter config --enable-web"
- name: "Setup chromedriver"
uses: nanasess/setup-chromedriver@v1
- name: Run integration tests
run: |
sudo apt-get install xvfb
chromedriver --port=4444 --enable-chrome-logs --disable-gpu --no-sandbox --url-base=/wd/hub &
xvfb-run --auto-servernum flutter drive --driver=test_driver/integration_test.dart --target=integration_test/example_test.dart -d chrome --release
env:
CHROME_NO_SANDBOX: "true"