Skip to content

chore(ts-config)!: update next.js target to es2017 #169

chore(ts-config)!: update next.js target to es2017

chore(ts-config)!: update next.js target to es2017 #169

Workflow file for this run

name: QA
on:
push:
branches:
- '*'
pull_request:
branches:
- develop
- main
env:
CACHE_KEY: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
CACHE_PATH: ./*
jobs:
setup:
runs-on: ubuntu-latest
outputs:
node-version: ${{ steps.set-node-version.outputs.node-version }}
pnpm-version: ${{ steps.set-pnpm-version.outputs.pnpm-version }}
strategy:
matrix:
node-version:
- 22.3.0
pnpm-version:
- 9.4.0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm v${{ matrix.pnpm-version }}
uses: pnpm/action-setup@v4
with:
version: ${{ matrix.pnpm-version }}
- name: Setup node.js v${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline
- name: Build packages
run: pnpm run build
- name: Cache setup
uses: actions/cache@v4
id: cache-setup
with:
key: ${{ env.CACHE_KEY }}
path: ${{ env.CACHE_PATH }}
- name: Set node-version
id: set-node-version
run: echo "node-version=${{ matrix.node-version }}" >> $GITHUB_OUTPUT
- name: Set pnpm-version
id: set-pnpm-version
run: echo "pnpm-version=${{ matrix.pnpm-version }}" >> $GITHUB_OUTPUT
commitlint:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ needs.setup.outputs.pnpm-version }}
- name: Setup node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ needs.setup.outputs.node-version }}
- name: Restore setup
uses: actions/cache@v4
id: restore-setup
with:
key: ${{ env.CACHE_KEY }}
path: ${{ env.CACHE_PATH }}
- name: Run commitlint
run: pnpm commitlint --from=${{ github.sha }}
eslint:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ needs.setup.outputs.pnpm-version }}
- name: Setup node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ needs.setup.outputs.node-version }}
- name: Restore setup
uses: actions/cache@v4
id: restore-setup
with:
key: ${{ env.CACHE_KEY }}
path: ${{ env.CACHE_PATH }}
- name: Run eslint
run: pnpm run lint
tsc:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ needs.setup.outputs.pnpm-version }}
- name: Setup node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ needs.setup.outputs.node-version }}
- name: Restore setup
uses: actions/cache@v4
id: restore-setup
with:
key: ${{ env.CACHE_KEY }}
path: ${{ env.CACHE_PATH }}
- name: Run tsc
run: pnpm run ts
prettier:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ needs.setup.outputs.pnpm-version }}
- name: Setup node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ needs.setup.outputs.node-version }}
- name: Restore setup
uses: actions/cache@v4
id: restore-setup
with:
key: ${{ env.CACHE_KEY }}
path: ${{ env.CACHE_PATH }}
- name: Run prettier
run: pnpm run format