-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (40 loc) · 1.29 KB
/
test-no-fixtures.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
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
name: test-without-fixtures
jobs:
test-without-fixtures:
runs-on: windows-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
EMODNETWFS_CI: yes
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: fs
- name: rm fixtures
run: fs::dir_delete(file.path("tests", "fixtures"))
shell: Rscript {0}
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: devtools
- name: Run devtools::test()
run: |
run1 <- as.data.frame(devtools::test())
if (sum(run1$error, run1$failed, run1$warning) > 0) {
stop("Tests did not pass with devtools::test()")
}
shell: Rscript {0}
- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check