-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9dd0467
commit 4b89a60
Showing
1 changed file
with
36 additions
and
158 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,210 +2,88 @@ name: Continuous Integration | |
|
||
on: [pull_request, workflow_dispatch] | ||
|
||
env: | ||
FLUTTER_VERSION: "3.19.5" | ||
|
||
jobs: | ||
setup: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
include: | ||
- os: ubuntu-latest | ||
flutter_path: /opt/hostedtoolcache/flutter | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache Flutter dependencies | ||
uses: actions/cache@v2 | ||
- uses: ./.github/workflows/setup-and-cache.yml | ||
with: | ||
path: ${{ matrix.flutter_path }} | ||
key: ${{ runner.os }}-flutter-3.0.0 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
- name: "Prepare Flutter Environment" | ||
run: ./.github/workflows/scripts/prepare-env.sh | ||
- name: "Install Tools" | ||
run: | | ||
./.github/workflows/scripts/install-tools.sh | ||
java-version: 12.x | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
|
||
analyze: | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Configuring java | ||
uses: actions/setup-java@v1 | ||
- name: Configure Java, Cache, and Prepare Environment | ||
uses: ./.github/workflows/setup-and-cache.yml | ||
with: | ||
java-version: 12.x | ||
- name: Cache Flutter dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /opt/hostedtoolcache/flutter | ||
key: ${{ runner.os }}-flutter-3.0.0 | ||
- name: Configuring flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: "3.0.0" | ||
channel: "stable" | ||
- name: "Prepare Flutter Environment" | ||
run: ./.github/workflows/scripts/prepare-env.sh | ||
- name: "Install Tools" | ||
run: | | ||
./.github/workflows/scripts/install-tools.sh | ||
- name: "Bootstrap Workspace" | ||
run: melos bootstrap | ||
- name: "Dart Analyze" | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
|
||
- name: Dart Analyze | ||
run: melos run analyze | ||
|
||
format: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
needs: setup | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Configuring java | ||
uses: actions/setup-java@v1 | ||
- name: Configure Java, Cache, and Prepare Environment | ||
uses: ./.github/workflows/setup-and-cache.yml | ||
with: | ||
java-version: 12.x | ||
- name: Cache Flutter dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /opt/hostedtoolcache/flutter | ||
key: ${{ runner.os }}-flutter-3.0.0 | ||
- name: Configuring flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: "3.0.0" | ||
channel: "stable" | ||
- name: "Prepare Flutter Environment" | ||
run: ./.github/workflows/scripts/prepare-env.sh | ||
- name: "Install Tools" | ||
run: | | ||
./.github/workflows/scripts/install-tools.sh | ||
curl -sL https://github.com/google/google-java-format/releases/download/google-java-format-1.3/google-java-format-1.3-all-deps.jar -o $HOME/google-java-format.jar | ||
- name: "Bootstrap Workspace" | ||
run: melos bootstrap | ||
- name: "Formatter" | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
|
||
- name: Formatter | ||
run: melos run format | ||
- name: "Validating formatter" | ||
|
||
- name: Validate Formatting | ||
run: ./.github/workflows/scripts/validate-formatting.sh | ||
|
||
build_torch_controller_example_ubuntu: | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Configuring java | ||
uses: actions/setup-java@v1 | ||
- name: Configure Java, Cache, and Prepare Environment | ||
uses: ./.github/workflows/setup-and-cache.yml | ||
with: | ||
java-version: 12.x | ||
- name: Cache Flutter dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /opt/hostedtoolcache/flutter | ||
key: ${{ runner.os }}-flutter-3.0.0 | ||
- name: Configuring flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: "3.0.0" | ||
channel: "stable" | ||
- name: "Prepare Flutter Environment" | ||
run: ./.github/workflows/scripts/prepare-env.sh | ||
- name: "Install Tools" | ||
run: ./.github/workflows/scripts/install-tools.sh | ||
- name: "Bootstrap Workspace" | ||
run: melos bootstrap | ||
- name: "torch_controller_example app bundle" | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
|
||
- name: Build torch_controller_example app bundle | ||
run: cd packages/torch_controller/example && flutter build appbundle | ||
|
||
test_torch_controller: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
needs: setup | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Configuring java | ||
uses: actions/setup-java@v1 | ||
- name: Configure Java, Cache, and Prepare Environment | ||
uses: ./.github/workflows/setup-and-cache.yml | ||
with: | ||
java-version: 12.x | ||
- name: Cache Flutter dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /opt/hostedtoolcache/flutter | ||
key: ${{ runner.os }}-flutter-3.0.0 | ||
- name: Configuring flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: "3.0.0" | ||
channel: "stable" | ||
- name: "Prepare Flutter Environment" | ||
run: ./.github/workflows/scripts/prepare-env.sh | ||
- name: "Install Tools" | ||
run: ./.github/workflows/scripts/install-tools.sh | ||
- name: "Bootstrap Workspace" | ||
run: melos bootstrap | ||
- name: "Flutter Test" | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
|
||
- name: Flutter Test | ||
run: melos run test:torch:controller | ||
|
||
test_storage_controller: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
needs: setup | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Configuring java | ||
uses: actions/setup-java@v1 | ||
- name: Configure Java, Cache, and Prepare Environment | ||
uses: ./.github/workflows/setup-and-cache.yml | ||
with: | ||
java-version: 12.x | ||
- name: Cache Flutter dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /opt/hostedtoolcache/flutter | ||
key: ${{ runner.os }}-flutter-3.0.0 | ||
- name: Configuring flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: "3.0.0" | ||
channel: "stable" | ||
- name: "Prepare Flutter Environment" | ||
run: ./.github/workflows/scripts/prepare-env.sh | ||
- name: "Install Tools" | ||
run: ./.github/workflows/scripts/install-tools.sh | ||
- name: "Bootstrap Workspace" | ||
run: melos bootstrap | ||
- name: "Flutter Test" | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
|
||
- name: Flutter Test | ||
run: melos run test:storage:controller |