Merge pull request #201 from americanexpress/dependabot/npm_and_yarn/… #449
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [ '18.x' ] # This package cannot be tested under node 20+ in cicd due to the changed formatting system. See Readme. | |
name: Node ${{ matrix.node }} | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
git remote set-branches --add origin main | |
git fetch | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install Dependencies | |
run: npm ci | |
env: | |
NODE_ENV: development | |
- name: Unit Tests | |
run: npm run test:unit | |
- name: Git History Test | |
run: npm run test:git-history | |
- name: Lockfile Lint Test | |
run: npm run test:lockfile | |
- name: Lint | |
run: npm run test:lint |