Skip to content

Commit

Permalink
Use new composite actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gabber235 committed Nov 24, 2023
1 parent 8ff8d72 commit 16c9194
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 37 deletions.
1 change: 0 additions & 1 deletion .github/actions/build-plugin/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ description: "Builds the plugin and runs tests"
runs:
using: "composite"
steps:
- uses: actions/checkout@v2
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/build-adapter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,10 @@ jobs:
with:
distribution: temurin
java-version: 17
- name: Test Adapter
uses: gradle/gradle-build-action@v2
with:
arguments: test --scan
build-root-directory: ./adapters/${{ inputs.adapter }}
- name: Build Adapter
uses: gradle/gradle-build-action@v2
uses: ./.github/actions/build-adapter
with:
arguments: buildRelease --scan
build-root-directory: ./adapters/${{ inputs.adapter }}
adapter: ${{ inputs.adapter }}
- name: Upload Adapter
uses: actions/upload-artifact@v2
with:
Expand Down
30 changes: 2 additions & 28 deletions .github/workflows/build-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "master"
- name: Get Flutter dependencies
run: flutter pub get
working-directory: ./app
- name: Run tests
run: flutter test
working-directory: ./app
- name: Build web app
run: flutter build web --release --no-tree-shake-icons
working-directory: ./app
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Test Plugin
uses: gradle/gradle-build-action@v2
with:
arguments: test --scan
build-root-directory: ./plugin
- uses: actions/checkout@v3
- name: Build Plugin
uses: gradle/gradle-build-action@v2
with:
arguments: buildRelease --scan
build-root-directory: ./plugin
uses: ./.github/actions/build-plugin
- name: Upload Plugin
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 16c9194

Please sign in to comment.