build check #19
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: build | |
run-name: build check | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node-version: [20] | |
defaults: | |
run: | |
working-directory: svelte-portfolio | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
cache-dependency-path: remix | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
# チェック実行 | |
# - name: vitest | |
# run: pnpm test:ci | |
- name: lint | |
run: pnpm run lint | |
- name: lint | |
run: pnpm run check | |
- name: build check | |
run: pnpm build |