Merge pull request #93 from yumemi-inc/dependabot/npm_and_yarn/typesc… #198
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: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: ~ | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- run: corepack enable pnpm | |
- id: pnpm-cache | |
shell: bash | |
run: echo "path=$(pnpm store path)" >> "${GITHUB_OUTPUT}" | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ steps.pnpm-cache.outputs.path }} | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: ${{ runner.os }}-pnpm- | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm run check | |
- run: pnpm run build |