Skip to content

Commit

Permalink
Split the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier committed Oct 6, 2022
1 parent bf7ee21 commit 11eadc2
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 33 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: analyze

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
name: analyze
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: subosito/flutter-action@v1
with:
channel: "stable"

# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: Analyze project source
run: flutter analyze
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
with-flutter-action:
name: with-flutter-action
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: subosito/flutter-action@v1
with:
channel: "stable"
- run: sudo apt -y install git curl cmake ninja-build make clang libgtk-3-dev pkg-config
- run: flutter build linux -v

with-flutter-snap:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: sudo snap install flutter --classic
- run: flutter build linux -v

9 changes: 9 additions & 0 deletions .github/workflows/cla-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: cla-check
on: [pull_request_target]

jobs:
cla-check:
runs-on: ubuntu-20.04
steps:
- name: Check if CLA signed
uses: canonical/has-signed-canonical-cla@v1
33 changes: 0 additions & 33 deletions .github/workflows/flutter-ci.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: format

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
name: format
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: subosito/flutter-action@v1
with:
channel: "stable"

# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: format
run: flutter format --set-exit-if-changed .
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: test

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
name: test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: subosito/flutter-action@v1
with:
channel: "stable"

- name: test
run: flutter test

0 comments on commit 11eadc2

Please sign in to comment.