This repository has been archived by the owner on Aug 23, 2023. It is now read-only.
docs(README): prepare to archive #62
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
name: Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [ '12.x', '14.x', '16.x', '18.x' ] | |
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: ./node_modules/.bin/jest | |
env: | |
NODE_ENV: production | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Git History Test | |
run: npm run test:git-history | |
env: | |
NODE_ENV: production | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Lockfile Lint Test | |
run: npm run test:lockfile | |
env: | |
NODE_ENV: production | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Lint | |
run: npm run lint | |
env: | |
NODE_ENV: production | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |