v7 #1599
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm run test-format | |
- name: Install and setup rexreplace globally | |
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" | |
- name: Run CLI tests | |
run: npm run test-cli | |
- run: npm test |