Merge pull request #6 from yumemi-inc/dependabot/npm_and_yarn/types/n… #12
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@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- run: corepack enable pnpm | |
- id: pnpm-cache | |
shell: bash | |
run: echo "path=$(pnpm store path)" >> "${GITHUB_OUTPUT}" | |
- uses: actions/cache@v3 | |
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 |