Merge pull request #272 from dcastil/dependabot/npm_and_yarn/word-wra… #397
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: Test | |
on: | |
push: | |
branches: ['**'] | |
pull_request: | |
branches: ['**'] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Use node_modules cache | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: yarn-node-16-lock-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
yarn-node-16-lock- | |
- run: yarn install --frozen-lockfile | |
- run: yarn lint | |
- run: yarn test --ci --coverage --maxWorkers=2 | |
- run: yarn build | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: build-output | |
path: dist | |
if-no-files-found: error | |
- run: yarn test:exports |