build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 #62
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: CI | |
on: | |
push: | |
branches: ["develop"] | |
pull_request: | |
branches: ["master"] | |
jobs: | |
ci: | |
runs-on: windows-2022 | |
strategy: | |
matrix: | |
node: [12, 14, 16] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: pnpm/action-setup@v2.0.1 | |
with: | |
version: latest | |
- name: Use NodeJS ${{ matrix.node }} & Cache | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: "pnpm" | |
- name: Install Dependencies | |
run: pnpm i | |
- name: Check Spelling | |
run: pnpm spell:check | |
- name: Format Write | |
id: format | |
run: | | |
pnpm format:write | |
echo "::set-output name=NUM_CHANGED::$(git add . && git status src | grep 'modified:' | wc -l)" | |
- name: Format Success | |
if: ${{ steps.format.outputs.NUM_CHANGED == 0 }} | |
run: echo "All matched files use Prettier code style!" | |
- name: Format Error | |
if: ${{ steps.format.outputs.NUM_CHANGED > 0 }} | |
run: | | |
pnpm format:check | |
echo "::error::Found formatting issues in ${{ steps.format.outputs.NUM_CHANGED }} of the above file(s). Forgot to run Prettier locally?" | |
exit 1 | |
- name: Lint Code | |
run: pnpm lint:code | |
- name: Lint Style | |
run: pnpm lint:style |