Feature/1270 add method replaceReference to find & replace contentBlockByX with one of the other options #1374
Workflow file for this run
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
# Custom tests for mcdev | |
# | |
name: 'Code Testing' | |
on: | |
push: | |
branches: [main, develop, hotfix] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [main, develop, hotfix] | |
jobs: | |
lintandTest18: | |
name: lint & test w/ node v18 | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.18.2 | |
registry-url: https://registry.npmjs.org/ | |
- run: npm ci --ignore-scripts | |
- run: npm run lint | |
# Assuming code passes, run tests | |
- name: Run mcdev-tests | |
run: npm run test | |
lintandTest19: | |
name: lint & test w/ node v19 | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 19 | |
registry-url: https://registry.npmjs.org/ | |
- run: npm ci --ignore-scripts | |
- run: npm run lint | |
# Assuming code passes, run tests | |
- name: Run mcdev-tests | |
run: npm run test | |
lintandTest20: | |
name: lint & test w/ node v20 | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- run: npm ci --ignore-scripts | |
- run: npm run lint | |
# Assuming code passes, run tests | |
- name: Run mcdev-tests | |
run: npm run test |