Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
  • Loading branch information
benny123tw committed Jun 13, 2024
1 parent 13e4797 commit 1b5919b
Showing 1 changed file with 67 additions and 61 deletions.
128 changes: 67 additions & 61 deletions .github/workflows/1.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,64 +21,70 @@ on:
# - patch

jobs:

build:
name: Build + unit tests
uses: ./.github/workflows/callable.build.yml
if: | # avoid unnecessary pipeline runs during artifact release process ('gradle release plugin')
!contains(github.event.head_commit.message, '[Gradle Release Plugin] - pre tag commit')
|| github.ref_type == 'tag'
code_analysis:
name: Code Analysis (multi)
permissions:
actions: read
contents: read
security-events: write
uses: ./.github/workflows/callable.code-analysis.yml
needs: build
if: |
github.event_name != 'workflow_dispatch'
|| inputs.type == '...no release'
# integration_test:
# name: Integration tests
# uses: ./.github/workflows/callable.integration-test.yml
# needs: build

# gradle_release:
# name: Create release
# uses: ./.github/workflows/callable.gradle-release.yml
# secrets: inherit
# with:
# type: ${{ inputs.type }}
# needs: build
# if: |
# github.event_name == 'workflow_dispatch'
# && inputs.type != '...no release'

publish_sonatype:
name: Publish artifact (Maven Central)
uses: ./.github/workflows/callable.publish-central-portal.yml
secrets: inherit
needs: build
if: |
(
github.event_name != 'workflow_dispatch'
|| inputs.type == '...no release'
) && (
github.ref == 'refs/heads/main'
|| github.ref_type == 'tag'
)
publish_javadoc:
name: Publish javadoc (GitHub Pages)
permissions:
contents: write
uses: ./.github/workflows/callable.publish-javadoc.yml
needs: build
if: |
(
github.ref == 'refs/heads/main'
&& ( inputs.type == '' || inputs.type == '...no release' )
) || github.ref_type == 'tag'
ls:
name: List files
runs-on: ubuntu-latest
steps:
- name: List files
run: ls -la
#
# build:
# name: Build + unit tests
# uses: ./.github/workflows/callable.build.yml
# if: | # avoid unnecessary pipeline runs during artifact release process ('gradle release plugin')
# !contains(github.event.head_commit.message, '[Gradle Release Plugin] - pre tag commit')
# || github.ref_type == 'tag'
#
# code_analysis:
# name: Code Analysis (multi)
# permissions:
# actions: read
# contents: read
# security-events: write
# uses: ./.github/workflows/callable.code-analysis.yml
# needs: build
# if: |
# github.event_name != 'workflow_dispatch'
# || inputs.type == '...no release'
#
# # integration_test:
# # name: Integration tests
# # uses: ./.github/workflows/callable.integration-test.yml
# # needs: build
#
# # gradle_release:
# # name: Create release
# # uses: ./.github/workflows/callable.gradle-release.yml
# # secrets: inherit
# # with:
# # type: ${{ inputs.type }}
# # needs: build
# # if: |
# # github.event_name == 'workflow_dispatch'
# # && inputs.type != '...no release'
#
# publish_sonatype:
# name: Publish artifact (Maven Central)
# uses: ./.github/workflows/callable.publish-central-portal.yml
# secrets: inherit
# needs: build
# if: |
# (
# github.event_name != 'workflow_dispatch'
# || inputs.type == '...no release'
# ) && (
# github.ref == 'refs/heads/main'
# || github.ref_type == 'tag'
# )
#
# publish_javadoc:
# name: Publish javadoc (GitHub Pages)
# permissions:
# contents: write
# uses: ./.github/workflows/callable.publish-javadoc.yml
# needs: build
# if: |
# (
# github.ref == 'refs/heads/main'
# && ( inputs.type == '' || inputs.type == '...no release' )
# ) || github.ref_type == 'tag'

0 comments on commit 1b5919b

Please sign in to comment.