-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (29 loc) · 1.02 KB
/
nodejs.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
name: CI-test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x, latest]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npx yarn install
- name: Setup rr command
run: |
npm install -g ./
echo "$(npm bin -g)" >> $GITHUB_PATH
npx rexreplace --version || echo "rexreplace not accessible via npx"
rexreplace --version || echo "rexreplace not accessible directly"
- run: npx yarn test-format
- run: npm uninstall -g rexreplace && npm -g install ./ && (which rexreplace || exit 0)
- run: npx yarn test-cli
- run: npx yarn test