Skip to content

CI LTS Node

CI LTS Node #6972

Workflow file for this run

name: Test
on: [push]
env:
NODE_OPTIONS: --max_old_space_size=4096
jobs:
tsc:
runs-on: ubuntu-latest
name: Typescript
steps:
- uses: actions/checkout@v3
- name: πŸ’Ύ Cache Dependencies
uses: actions/cache@v3
with:
path: ./node_modules
key: ${{ runner.os }}-${{ matrix.node }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: πŸ”¨ Install Dependencies
run: yarn install --frozen-lockfile --ignore-engines --ignore-scripts
- name: πŸ§ͺ tsc
run: yarn types --noEmit
test:
runs-on: ubuntu-latest
# strategy:
# matrix:
# node: [18, 20]
name: Test with Node LTS
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
- name: πŸ’Ύ Cache Dependencies
uses: actions/cache@v3
with:
path: ./node_modules
key: ${{ runner.os }}-lts-modules-${{ hashFiles('**/yarn.lock') }}
- name: πŸ”¨ Install Dependencies & Build
run: |
yarn install --frozen-lockfile --ignore-engines
yarn build
- name: πŸ§ͺ Lint and Test with Node LTS
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
yarn lint
yarn coverage
yarn validate-translations
- name: πŸ§ͺ Validate CommonJS bundle with LTS
run: yarn validate-cjs