Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-schiller-sonarsource committed Jul 26, 2023
1 parent 342c659 commit 3ca06d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,16 @@ This PR adds a new feature to import users from an XML file. Although the code i
This repository is supposed to be added as a SonarCloud project for analysis via GitHub actions.

* Fork this project *with all branches* (untick the default checkbox, "Copy the `main` branch only").
* Go to the `Actions` tab of your forked repository and enable workflows by selecting `I understand my workflows, go ahead and enable them`.
* Go to the `Pull requests` tab and create a new PR from the `introduce-user-migration-feature` and `allow-imports` branch to the `main` branch of your fork. Be careful that, by default, the PR targets the upstream repository.
* Go to [sonarcloud.io](https://sonarcloud.io/sessions/new) and sign up with your GitHub account.
* Create a new organization under your name if there is none.
* Give SonarCloud permission to see the forked repository.
* Add your repository as a new Project.
* Go to `Administration` -> `Analysis Method` and uncheck `Automatic Analysis`.
* Select `Set up analysis via other methods` -> `With GitHub Actions`.
* Add the displayed GitHub Secret to your repository.
* The `pom.xml` does not need to be adjusted.
* Update the `.github/workflows/build.yml` file in the main branch with the displayed content and ensure that the `java-version` is set to `17`.
* Update the `sonar.organization` value in the `pom.xml` file.
* Copy & paste the displayed content to `.github/workflows/build.yml` and set the `java-version` to `17`.

The first two issues will be displayed on the `main` branch and the other two issues on distinct Pull Requests.

0 comments on commit 3ca06d4

Please sign in to comment.