Skip to content

Merge pull request #356 from Accenture/dependabot/npm_and_yarn/main/e… #5

Merge pull request #356 from Accenture/dependabot/npm_and_yarn/main/e…

Merge pull request #356 from Accenture/dependabot/npm_and_yarn/main/e… #5

Workflow file for this run

# Custom tests for mcdev-copado
#
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:
testAndCoverage:
name: lint & test
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci --ignore-scripts
- run: npm run lint
# Assuming code passes, run tests
- name: Run mcdev-copado-tests
run: npm run test