-
Notifications
You must be signed in to change notification settings - Fork 8
119 lines (117 loc) · 3.18 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: Build
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
install-pandoc: 'TRUE'
pandoc-version: '3.5'
upgrade: 'TRUE'
packages: |
any::httr
any::rjson
any::base64enc
any::remotes
any::Rcpp
any::withr
any::spacefillr
any::matrixStats
any::data.table
any::fs
any::rlang
any::lifecycle
any::glue
any::cli
any::vctrs
any::utf8
any::pkgconfig
any::pillar
any::magrittr
any::fansi
any::stringi
any::tidyselect
any::tibble
any::generics
any::xfun
any::yaml
any::highr
any::evaluate
any::fastmap
any::digest
any::htmltools
any::rappdirs
any::sass
any::memoise
any::jquerylib
any::cachem
any::later
any::lazyeval
any::cpp11
any::stringr
any::purrr
any::dplyr
any::tinytex
any::fontawesome
any::bslib
any::rmarkdown
any::knitr
any::colorspace
any::viridisLite
any::RColorBrewer
any::munsell
any::labeling
any::farver
any::scales
any::isoband
any::gtable
any::promises
any::crosstalk
any::tidyr
any::htmlwidgets
any::ggplot2
any::RcppEigen
any::systemfonts
any::polyclip
any::tweenr
any::httpuv
any::truncnorm
any::plotly
any::gridExtra
any::ggforce
any::forcats
any::DT
- name: Set up JDK 21
uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache SonarCloud packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./mvnw -Dgpg.skip -B jacoco:prepare-agent verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar