docs(getting-started): rm unnecessary line numbers #213
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: Test | |
on: | |
push: | |
branches: | |
- '**' # This makes the workflow only runs by push to branch, not pushed git tag | |
paths-ignore: | |
- '.devbots/**' | |
- '.husky/**' | |
- '.vscode/**' | |
- .editorconfig | |
- commitlint.config.js | |
- license | |
- docs/urls.json | |
pull_request: | |
paths-ignore: | |
- '.devbots/**' | |
- '.husky/**' | |
- '.vscode/**' | |
- .editorconfig | |
- commitlint.config.js | |
- license | |
- docs/urls.json | |
jobs: | |
# [original source of job "check-if-to-skip"](https://github.com/srz-zumix/ci-skip/blob/master/.github/workflows/main.yml#L15) | |
skip: | |
runs-on: ubuntu-latest | |
# skip commits with [ci skip] or [skip ci], except on an action triggered by push of a version tag | |
if: "!( contains(github.event.head_commit.message, '[ci skip]') || contains(github.event.head_commit.message, '[skip ci]') )" | |
steps: | |
- name: Check [ci skip] or [skip ci] | |
run: exit 0 | |
test: | |
needs: skip | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# 0 indicates all history for all branches and tags. | |
fetch-depth: 0 # For git history test | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8.10.2 | |
run_install: false # For cache | |
- name: Read .nvmrc | |
id: nvmrc | |
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT | |
# pnpm should be installed before the setup-node action. REF: https://github.com/actions/setup-node/issues/530 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ steps.nvmrc.outputs.version }} | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Test and measure coverage | |
run: pnpm turbo test -- --ci | |
- uses: codecov/codecov-action@v3 | |
- name: Lint | |
run: pnpm turbo lint:ci | |
- name: Lint markdown | |
run: pnpm turbo lint:md:ci |