From 81956675c5e93b3d4c3df5f85f5281c794141e41 Mon Sep 17 00:00:00 2001 From: Jakub <53441451+kuba6000@users.noreply.github.com> Date: Wed, 10 Aug 2022 21:26:27 +0200 Subject: Add actions (#2) --- .github/test-scala-presence.toml | 2 ++ .github/workflows/build-and-test.yml | 13 +++++++++++++ .github/workflows/release-tags.yml | 14 ++++++++++++++ .github/workflows/test-scala-presence.yml | 18 ++++++++++++++++++ CODEOWNERS | 3 +++ 5 files changed, 50 insertions(+) create mode 100644 .github/test-scala-presence.toml create mode 100644 .github/workflows/build-and-test.yml create mode 100644 .github/workflows/release-tags.yml create mode 100644 .github/workflows/test-scala-presence.yml create mode 100644 CODEOWNERS diff --git a/.github/test-scala-presence.toml b/.github/test-scala-presence.toml new file mode 100644 index 0000000000..ae0e9acd49 --- /dev/null +++ b/.github/test-scala-presence.toml @@ -0,0 +1,2 @@ +[exclude] +"src/main/java/**/*.java" = "import scala." \ No newline at end of file diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000000..3ee2f686fd --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,13 @@ + +name: Build and test + +on: + pull_request: + branches: [ master, main ] + push: + branches: [ master, main ] + +jobs: + build-and-test: + uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/build-and-test.yml@master + secrets: inherit diff --git a/.github/workflows/release-tags.yml b/.github/workflows/release-tags.yml new file mode 100644 index 0000000000..e4c0be6b0d --- /dev/null +++ b/.github/workflows/release-tags.yml @@ -0,0 +1,14 @@ + +name: Release tagged build + +on: + push: + tags: [ '*' ] + +permissions: + contents: write + +jobs: + release-tags: + uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/release-tags.yml@master + secrets: inherit diff --git a/.github/workflows/test-scala-presence.yml b/.github/workflows/test-scala-presence.yml new file mode 100644 index 0000000000..6b1091e1fd --- /dev/null +++ b/.github/workflows/test-scala-presence.yml @@ -0,0 +1,18 @@ +name: Test Scala Presence + +on: + pull_request: + branches: [ master, main ] + push: + branches: [ master, main ] + +jobs: + test-scala-presence: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Check file content + uses: mattsb42-meta/not-grep@1.0.0 + with: + config-file: ./.github/test-scala-presence.toml diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000000..a6b5f68cd0 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,3 @@ +# Any Github changes require admin approval +/.github/** @GTNewHorizons/admin + -- cgit