Skip to content

Update cd.yml

Update cd.yml #46

Workflow file for this run

name: Node.js CI
on:
push:
branches: ['main', 'develop', 'fix/**', 'feature/**', 'chore/**']
pull_request:
branches: ['main']
jobs:
lint-check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: npm install --global yarn
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn ci:format
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: npm install --global yarn
- run: yarn install --frozen-lockfile
- run: yarn ci:test