Skip to content

Add Github action workflows#24

Open
JackChen365 wants to merge 2 commits into
devfrom
jack/add_workflows
Open

Add Github action workflows#24
JackChen365 wants to merge 2 commits into
devfrom
jack/add_workflows

Conversation

@JackChen365
Copy link
Copy Markdown
Owner

@JackChen365 JackChen365 commented Aug 1, 2022

Main changes

  • Add unit-test workflow to run unit-test whenever merge the code into dev

  • Add create-release-tag workflow to create a release tag

How to use the create-release-tag

cd .github/script
./create-release-tag.sh --release-tag 1.0.0

@JackChen365 JackChen365 requested a review from Airsaid August 1, 2022 13:18

# The script is a local script file. So we can not use Github-secrets,
# And this token is the key to access the Github-API, should be maintained by the manager.
GITHUB_TOKEN="xxx"
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please help to generate a Github token with workflow permission to trigger this workflow.

@JackChen365
Copy link
Copy Markdown
Owner Author

I haven't tested yet...
Waiting for test.

@JackChen365
Copy link
Copy Markdown
Owner Author

* Where:
Build file '/home/runner/work/android-sample-library/android-sample-library/build.gradle.kts' line: 3

* What went wrong:
Plugin [id: 'io.github.jackchen365.sample', version: '2.0.0-SNAPSHOT', apply: false] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'io.github.jackchen365.sample:io.github.jackchen365.sample.gradle.plugin:2.0.0-SNAPSHOT')
  Searched in the following repositories:
    Gradle Central Plugin Repository
    Google
    MavenRepo
    MavenLocal(file:/home/runner/.m2/repository)
    maven(https://jitpack.io/)
    maven2(https://plugins.gradle.org/m2/)
    maven3(https://dl.bintray.com/jetbrains/kotlin-native-dependencies)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org/

BUILD FAILED in 1m 16s

I think it's time to fix this issue...

Add Github action workflows Unit test #1

@Airsaid
Copy link
Copy Markdown
Collaborator

Airsaid commented Aug 2, 2022

It looks like CI is executing ./gradlew clean :sample-plugin:test without executing the publishXXX tasks first, we need to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants