CI LTS Node #6972
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] | |
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 |