-
Notifications
You must be signed in to change notification settings - Fork 16
61 lines (49 loc) · 1.44 KB
/
R-CMD-check.yaml
File metadata and controls
61 lines (49 loc) · 1.44 KB
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
name: R-CMD-Check.yaml
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
R-CMD-Check:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Increase disk space
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
sudo docker builder prune -a
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install tree-sitter-cli
run: npm install -g tree-sitter-cli
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Caching
uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ runner.os }}-R-CMD-Check
cache-on-failure: true
- name: Check disk space
run: df -h
- name: Setup CLI tools
run: cargo install --path src
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
working-directory: ggsql-R
- name: Setup R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
working-directory: ggsql-R
extra-packages: any::rcmdcheck
needs: check
- name: Checking R package
uses: r-lib/actions/check-r-package@v2
with:
working-directory: ggsql-R