-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from gabber235/temp
Add to main branch to register action
- Loading branch information
Showing
4 changed files
with
111 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "Build Adapter" | ||
description: "Builds the adapter and runs tests" | ||
|
||
inputs: | ||
adapter: | ||
required: true | ||
description: "Name of the adapter to build" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- 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 | ||
with: | ||
arguments: buildRelease --scan | ||
build-root-directory: ./adapters/${{ inputs.adapter }} | ||
|
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Build Plugin | ||
description: "Builds the plugin and runs tests" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "master" | ||
- name: Get Flutter dependencies | ||
run: flutter pub get | ||
shell: bash | ||
working-directory: ./app | ||
- name: Run tests | ||
run: flutter test | ||
shell: bash | ||
working-directory: ./app | ||
- name: Build web app | ||
run: flutter build web --release --no-tree-shake-icons | ||
shell: bash | ||
working-directory: ./app | ||
- name: Test Plugin | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: test --scan | ||
build-root-directory: ./plugin | ||
- name: Build Plugin | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: buildRelease --scan | ||
build-root-directory: ./plugin | ||
|
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Build Development Jars and Publish | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
paths: | ||
- 'plugins/**' | ||
- 'adapters/**' | ||
- '.github/workflows/build-development-jars-and-publish.yml' | ||
|
||
jobs: | ||
build-publish-development: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
- name: Build Plugin | ||
uses: ./.github/actions/build-plugin | ||
- name: Build Basic Adapter | ||
uses: ./.github/actions/build-adapter | ||
with: | ||
adapter: BasicAdapter | ||
- name: Build Citizens Adapter | ||
uses: ./.github/actions/build-adapter | ||
with: | ||
adapter: CitizensAdapter | ||
- name: Build CombatLogX Adapter | ||
uses: ./.github/actions/build-adapter | ||
with: | ||
adapter: CombatLogXAdapter | ||
- name: Build MythicMobs Adapter | ||
uses: ./.github/actions/build-adapter | ||
with: | ||
adapter: MythicMobsAdapter | ||
- name: Build RPGRegions Adapter | ||
uses: ./.github/actions/build-adapter | ||
with: | ||
adapter: RPGRegionsAdapter | ||
- name: Build SuperiorSkyblock Adapter | ||
uses: ./.github/actions/build-adapter | ||
with: | ||
adapter: SuperiorSkyblockAdapter | ||
- name: Build Vault Adapter | ||
uses: ./.github/actions/build-adapter | ||
with: | ||
adapter: VaultAdapter | ||
- name: Build WorldGuard Adapter | ||
uses: ./.github/actions/build-adapter | ||
with: | ||
adapter: WorldGuardAdapter |
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 |
---|---|---|
|
@@ -3,8 +3,6 @@ name: Build Jars on Push | |
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
- feature/** | ||
|
||
jobs: | ||
|