Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] actions #58

Open
Alice52 opened this issue Aug 25, 2022 · 1 comment
Open

[ci] actions #58

Alice52 opened this issue Aug 25, 2022 · 1 comment

Comments

@Alice52
Copy link
Owner

Alice52 commented Aug 25, 2022

actions

  1. build project
  2. build image and push to ali docker register
  3. sonar cloud check: 这个就一直使用最新版本即可
    • 了解自定义规则
  4. release module
@Alice52
Copy link
Owner Author

Alice52 commented Aug 26, 2022

  1. sonar cloud check
  1. create account in https://sonarcloud.io/
  2. create organization key
  3. import project, then get project key
  4. stop atomic analysis: Administration > Analysis Method
  5. set sonar rule, just check latest changed code: Administration > New Code
  6. code change
    • create build.yml in github action
    • pom.xml
    <properties>
        <sonar.host.url>https://sonarcloud.io</sonar.host.url>
        <sonar.organization>alice52</sonar.organization>
        <sonar-maven-plugin.version>3.8.0.2131</sonar-maven-plugin.version>
    </properties>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.sonarsource.scanner.maven</groupId>
                    <artifactId>sonar-maven-plugin</artifactId>
                    <version>${sonar-maven-plugin.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

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

No branches or pull requests

1 participant