Update actions/checkout action to v4 #13
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: PR Guardrails | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
pr-guardrails: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: | | |
# npm install | |
npm ci | |
- name: Run unit tests | |
run: | | |
set -x | |
pwd | |
ls -all | |
npm run test | |
# - name: Run smoke tests | |
# run: | | |
# set -x | |
# pwd | |
# ls -all | |
# npm install -g newman | |
# make failed | |
- name: Install reporter locally | |
run: | | |
set -x | |
pwd | |
ls -all | |
make local-install |