-
Notifications
You must be signed in to change notification settings - Fork 2
72 lines (61 loc) · 1.65 KB
/
rhino-test.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
name: Rhino Test
on: push
permissions:
contents: read
jobs:
main:
name: Run linters and tests
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup system dependencies
run: |
packages=(
# List each package on a separate line.
)
sudo apt-get update
sudo apt-get install --yes "${packages[@]}"
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: renv
- name: Setup R dependencies
uses: r-lib/actions/setup-renv@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Lint R
if: always()
shell: Rscript {0}
run: rhino::lint_r()
- name: Lint JavaScript
if: always()
shell: Rscript {0}
run: rhino::lint_js()
- name: Lint Sass
if: always()
shell: Rscript {0}
run: rhino::lint_sass()
- name: Build JavaScript
if: always()
shell: Rscript {0}
run: rhino::build_js()
- name: Build Sass
if: always()
shell: Rscript {0}
run: rhino::build_sass()
- name: Run R unit tests
if: always()
shell: Rscript {0}
run: rhino::test_r()
- name: Run Cypress end-to-end tests
if: always()
uses: cypress-io/github-action@v6
with:
working-directory: .rhino # Created by earlier commands which use Node.js
start: npm run run-app
project: ../tests
wait-on: 'http://localhost:3333/'
wait-on-timeout: 60