1414 - uses : actions/setup-node@v3
1515 with :
1616 node-version : 18
17- - run : yarn install
17+ - run : npm install
1818 - name : Run tests
19192020 with :
@@ -26,11 +26,11 @@ jobs:
2626 steps :
2727 - uses : actions/checkout@v3
2828 - 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
3131 with :
3232 args : " package -o $VSIX_FILE"
33- - uses : actions/upload-artifact@v3
33+ - uses : actions/upload-artifact@v4
3434 with :
3535 name : ${{ env.VSIX_FILE }}
3636 path : ${{ env.VSIX_FILE }}
4141 - uses : actions/setup-node@v3
4242 with :
4343 node-version : 18
44- - run : yarn install
45- - run : yarn run lint
44+ - run : npm install
45+ - run : npm run lint
4646 markdownlint-cli :
4747 runs-on : ubuntu-latest
4848 steps :
@@ -52,31 +52,33 @@ jobs:
5252 files : .
5353 config_file : " .markdownlint.json"
5454 ignore_files : " node_modules/*"
55- lintr :
55+ lint :
5656 runs-on : ubuntu-latest
57- container :
58- image : rocker/tidyverse:latest
57+ env :
58+ GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
5959 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+
6566 - 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
7375 devreplay :
7476 runs-on : ubuntu-latest
7577 steps :
7678 - uses : actions/checkout@v3
7779 - uses : actions/setup-node@v3
7880 with :
7981 node-version : 18
80- - run : yarn install
82+ - run : npm install
8183 - name : Run devreplay
8284 run : ./node_modules/.bin/devreplay ./src devreplay.json
0 commit comments