chore(deps): upgrade node.js and all packages to latest compat #28
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: QA | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node version | |
id: nvm | |
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) | |
- name: Setup node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ steps.nvm.outputs.NODE_VERSION }} | |
- name: Setup yarn cache | |
id: yarncache | |
run: echo ::set-output name=dir::$(yarn cache dir) | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.yarncache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: ${{ runner.os }}-yarn- | |
- name: Install dependencies | |
run: yarn install | |
- name: Cache setup | |
id: cache-setup | |
uses: actions/cache@v3 | |
with: | |
path: ./* | |
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }} | |
commitlint: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node version | |
id: nvm | |
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) | |
- name: Setup node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ steps.nvm.outputs.NODE_VERSION }} | |
- name: Restore setup | |
id: restore-setup | |
uses: actions/cache@v3 | |
with: | |
path: ./* | |
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }} | |
- name: Run commitlint | |
run: yarn commitlint --from=${{ github.sha }} | |
tsc: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node version | |
id: nvm | |
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) | |
- name: Setup node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ steps.nvm.outputs.NODE_VERSION }} | |
- name: Restore setup | |
id: restore-setup | |
uses: actions/cache@v3 | |
with: | |
path: ./* | |
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }} | |
- name: Check types | |
run: yarn ts | |
prettier: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node version | |
id: nvm | |
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) | |
- name: Setup node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ steps.nvm.outputs.NODE_VERSION }} | |
- name: Restore setup | |
id: restore-setup | |
uses: actions/cache@v3 | |
with: | |
path: ./* | |
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }} | |
- name: Run prettier | |
run: yarn prettier | |
eslint: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node version | |
id: nvm | |
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) | |
- name: Setup node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ steps.nvm.outputs.NODE_VERSION }} | |
- name: Restore setup | |
id: restore-setup | |
uses: actions/cache@v3 | |
with: | |
path: ./* | |
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }} | |
- name: Run eslint | |
env: | |
NODE_ENV: production | |
run: yarn eslint |