Skip to content

Commit

Permalink
Merge pull request #87 from gabber235/temp
Browse files Browse the repository at this point in the history
Add to main branch to register action
  • Loading branch information
gabber235 authored Nov 24, 2023
2 parents 72f0cc8 + 76de4c2 commit 7da2bfb
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/actions/build_adapter/action.yml
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 }}

34 changes: 34 additions & 0 deletions .github/actions/build_plugin/action.yml
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

55 changes: 55 additions & 0 deletions .github/workflows/build-development-jars-and-publish.yml
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
2 changes: 0 additions & 2 deletions .github/workflows/build-jars-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Build Jars on Push
on:
push:
branches:
- main
- develop
- feature/**

jobs:
Expand Down

0 comments on commit 7da2bfb

Please sign in to comment.