-
Notifications
You must be signed in to change notification settings - Fork 37
105 lines (103 loc) · 2.46 KB
/
smoke-tests.yaml
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
name: Smoke Tests
# only build on merges to main
on:
push:
branches:
- main
schedule:
# Run every Sunday
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
test:
name: smoke-tests
runs-on: ubuntu-latest
env:
PKGNET_SUPPRESS_BROWSER: 0
strategy:
fail-fast: false
matrix:
test_pkg:
- askpass
- assertthat
- base64enc
- bslib
- cachem
- cli
- covr
- cpp11
- crayon
- crosstalk
- curl
- data.table
- digest
- DT
- evaluate
- fastmap
- fontawesome
- formatR
- fs
- futile.logger
- futile.options
- glue
- highr
- htmltools
- htmlwidgets
- httpuv
- httr
- igraph
- jquerylib
- jsonlite
- knitr
- lambda.r
- later
- lazyeval
- lifecycle
- magrittr
- memoise
- mime
- openssl
- pkgconfig
- promises
- R6
- rappdirs
- Rcpp
- rex
- rlang
- rmarkdown
- sass
- sys
- tinytex
- vctrs
- visNetwork
- withr
- xfun
- yaml
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
- name: If local, apt update
if: ${{ (env.ACT || false) }}
run: sudo apt update
- name: Install Tidy
run: sudo apt install -y tidy
- name: Install Deps For Pkgnet & ${{ matrix.test_pkg }}
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: ${{ matrix.test_pkg }}, local::.
- name: run smoke test
shell: Rscript {0}
run: "pkgnet::CreatePackageReport(pkg_name='${{ matrix.test_pkg }}', report_path='${{ github.workspace }}/${{ matrix.test_pkg }}_report.html')"
# https://github.saobby.my.eu.orgmunity/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
all-successful:
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Note that all smoke tests succeeded
run: echo "🚫🔥==🐻👍🏼👍🏼"