From 1b5919bc402a625f95df330e032215d7648ddc18 Mon Sep 17 00:00:00 2001 From: Benny Yen Date: Fri, 14 Jun 2024 00:44:55 +0800 Subject: [PATCH] ci: test --- .github/workflows/1.pipeline.yml | 128 ++++++++++++++++--------------- 1 file changed, 67 insertions(+), 61 deletions(-) diff --git a/.github/workflows/1.pipeline.yml b/.github/workflows/1.pipeline.yml index 28be6c3..a9cc297 100644 --- a/.github/workflows/1.pipeline.yml +++ b/.github/workflows/1.pipeline.yml @@ -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'