14
14
- uses : actions/setup-node@v3
15
15
with :
16
16
node-version : 18
17
- - run : yarn install
17
+ - run : npm install
18
18
- name : Run tests
19
19
20
20
with :
@@ -26,11 +26,11 @@ jobs:
26
26
steps :
27
27
- uses : actions/checkout@v3
28
28
- run : node $SCRIPT_DIR/enableWebpack.js
29
- - run : yarn install
30
- - uses : lannonbr/vsce-action@master
29
+ - run : npm install
30
+ - uses : lannonbr/vsce-action@4.0.0
31
31
with :
32
32
args : " package -o $VSIX_FILE"
33
- - uses : actions/upload-artifact@v3
33
+ - uses : actions/upload-artifact@v4
34
34
with :
35
35
name : ${{ env.VSIX_FILE }}
36
36
path : ${{ env.VSIX_FILE }}
41
41
- uses : actions/setup-node@v3
42
42
with :
43
43
node-version : 18
44
- - run : yarn install
45
- - run : yarn run lint
44
+ - run : npm install
45
+ - run : npm run lint
46
46
markdownlint-cli :
47
47
runs-on : ubuntu-latest
48
48
steps :
@@ -52,31 +52,33 @@ jobs:
52
52
files : .
53
53
config_file : " .markdownlint.json"
54
54
ignore_files : " node_modules/*"
55
- lintr :
55
+ lint :
56
56
runs-on : ubuntu-latest
57
- container :
58
- image : rocker/tidyverse:latest
57
+ env :
58
+ GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
59
59
steps :
60
- - uses : actions/checkout@v3
61
- - name : Install apt-get dependencies
62
- run : |
63
- apt-get update
64
- apt-get install git ssh curl bzip2 -y
60
+ - uses : actions/checkout@v4
61
+
62
+ - uses : r-lib/actions/setup-r@v2
63
+ with :
64
+ use-public-rspm : true
65
+
65
66
- name : Install lintr
66
- run : |
67
- Rscript -e "install.packages('lintr', repos = 'https://cloud.r-project.org')"
68
- shell : bash
69
- - name : Running lintr
70
- run : |
71
- Rscript -e "stopifnot(length(print(lintr::lint_dir('./R'))) == 0)"
72
- shell : bash
67
+ run : install.packages("lintr")
68
+ shell : Rscript {0}
69
+
70
+ - name : Lint root directory
71
+ run : lintr::lint_dir("./R")
72
+ shell : Rscript {0}
73
+ env :
74
+ LINTR_ERROR_ON_LINT : true
73
75
devreplay :
74
76
runs-on : ubuntu-latest
75
77
steps :
76
78
- uses : actions/checkout@v3
77
79
- uses : actions/setup-node@v3
78
80
with :
79
81
node-version : 18
80
- - run : yarn install
82
+ - run : npm install
81
83
- name : Run devreplay
82
84
run : ./node_modules/.bin/devreplay ./src devreplay.json
0 commit comments