7x docs and stability improvements #1155
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: CI | |
on: | |
push: | |
branches: [main, dev] | |
pull_request: | |
branches: [main, dev] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x, 22.x] | |
env: | |
AWS_DEFAULT_REGION: us-west-1 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Check node version | |
run: node -v | |
- name: Upgrade npm | |
run: npm install -g npm@latest | |
- name: Check npm version | |
run: npm -v | |
- name: Restore npm cache if possible | |
uses: actions/cache@v4 | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json') }} | |
restore-keys: | | |
${{ runner.os }}-lerna- | |
- name: Install modules | |
run: npm install | |
- name: Run tests | |
run: npm test |