Skip to content

[Blog] Github action CI/CD #428

[Blog] Github action CI/CD

[Blog] Github action CI/CD #428

Workflow file for this run

on:
push:
branches:
- 'master'
pull_request:
name: CI
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
all_but_latest: true
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 7.x.x
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Markdown lint
run: pnpm markdown:lint
- name: EsLint
run: pnpm lint
- name: Stylelint
run: pnpm stylelint