Skip to content

chore: allow node version 18 and 20 #18

chore: allow node version 18 and 20

chore: allow node version 18 and 20 #18

Workflow file for this run

name: Run Tests for Cosmos
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["18.x"]
steps:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build:core && npm run build:cosmos
- name: Test
timeout-minutes: 15
run: |
npm run test:cosmos