-
Notifications
You must be signed in to change notification settings - Fork 129
82 lines (81 loc) · 2.14 KB
/
main.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
73
74
75
76
77
78
79
80
81
82
name: main
on: [push, pull_request]
env:
SCRIPT_DIR: ./.github/scripts
jobs:
test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn install
- name: Run tests
uses: GabrielBB/xvfb-action@v1.0
with:
run: npm run test
build:
runs-on: ubuntu-latest
env:
VSIX_FILE: vscode-R.vsix
steps:
- uses: actions/checkout@v3
- run: node $SCRIPT_DIR/enableWebpack.js
- run: yarn install
- uses: lannonbr/vsce-action@master
with:
args: "package -o $VSIX_FILE"
- uses: actions/upload-artifact@v3
with:
name: ${{ env.VSIX_FILE }}
path: ${{ env.VSIX_FILE }}
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn install
- run: yarn run lint
markdownlint-cli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nosborn/github-action-markdown-cli@v1.1.1
with:
files: .
config_file: ".markdownlint.json"
ignore_files: "node_modules/*"
lintr:
runs-on: ubuntu-latest
container:
image: rocker/tidyverse:latest
steps:
- uses: actions/checkout@v3
- name: Install apt-get dependencies
run: |
apt-get update
apt-get install git ssh curl bzip2 -y
- name: Install lintr
run: |
Rscript -e "install.packages('lintr', repos = 'https://cloud.r-project.org')"
shell: bash
- name: Running lintr
run: |
Rscript -e "stopifnot(length(print(lintr::lint_dir('./R'))) == 0)"
shell: bash
devreplay:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn install
- name: Run devreplay
run: ./node_modules/.bin/devreplay ./src devreplay.json