This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
chore(deps): update dependency @scaleleap/jest-polly to v1.6.17 #1673
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 | |
env: | |
CI: "true" | |
on: | |
- pull_request | |
jobs: | |
test: | |
name: Node v${{ matrix.node }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: | |
- 10 | |
- 12 | |
- 14 | |
- 16 | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: npm t | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
MWS_AUTH_TOKEN: ${{ secrets.MWS_AUTH_TOKEN }} | |
SECRET_KEY: ${{ secrets.SECRET }} | |
SELLER_ID: ${{ secrets.SELLER_ID }} | |
- name: Build | |
run: npm run build | |
- name: API Extractor | |
run: npm run api-extractor |