ci(test): rm ci-skip job as natively supported #2
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: | |
test: | |
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.12.0 | |
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: Build | |
run: pnpm --filter "haetae" build | |
- name: Install dependencies | |
# This is needed to install haetae built from the previous step into /examples/* | |
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 |