Skip to content

kolosovpetro/SonarCloudViaGithubActions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SonarCloud via GitHub Actions

Explains how to integrate SonarCloud with GitHub actions in a simple and quick approach.

Build and run in Intellij IDEA

Configure CI / CD

Set repository secrets

  • GH_ACCESS_TOKEN: Generate GitHub Personal access token at Settings -> Developer Settings -> Personal access tokens -> Generate mew token and assign in to secret GH_ACCESS_TOKEN

Actions and their trigger policy

  • build-pdf.yml builds project using TeXLive. Triggered on pull_request, push to develop branch
  • build-and-deploy-pdf.yml builds project using TeXLive and deploys to GitHub Pages. Triggered on push to main branch

Template example

Compiled document looks like as follows

template_example