Skip to content

build check

build check #3

Workflow file for this run

name: build
run-name: build check
on:
pull_request:
push:
branches:
- main
- release
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20]
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'
- name: Install dependencies
run: pnpm install --frozen-lockfile
# チェック実行
- name: vitest
run: pnpm test:ci
- name: lint
run: pnpm lint:ci
- name: build check
run: pnpm build
# visual-regression-testing:
# needs: changes
# if: ${{ needs.changes.outputs.is_frontend == 'true' }}
# runs-on: ubuntu-22.04
# defaults:
# run:
# working-directory: packages/frontend
# steps:
# # リポジトリをチェックアウト
# - uses: actions/checkout@v3
# # TODO: github action 内のdocker build でキャッシュしたい https://github.com/stlatica/stlatica/issues/286
# - name: build container image
# run: make util/build
# - name: pull lfs snapshots
# run: git lfs pull
# - name: Run vrt tests in container
# run: make vrt
# timeout-minutes: 2
# deploy:
# # 同時にビルドが走った際に、先のビルドを優先
# concurrency:
# group: 'pages'
# cancel-in-progress: true
# # main でのみ実行
# if: ${{github.ref == 'refs/heads/main'}}
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-22.04
# defaults:
# run:
# working-directory: packages/frontend/remix
# steps:
# # リポジトリをチェックアウト
# - uses: actions/checkout@v3
# with:
# ref: ${{ github.head_ref }}
# # pnpm 8をインストール
# - uses: pnpm/action-setup@v2
# with:
# version: 9
# # node.jsをインストール
# - name: Node.js
# uses: actions/setup-node@v3
# with:
# cache: 'pnpm'
# cache-dependency-path: packages/frontend/remix
# # 依存関係先をインストール
# - name: Install dependencies
# run: pnpm install --frozen-lockfile
# # コンポーネントカタログをビルド (2回目)
# - name: catalog build
# run: pnpm ladle:ci
# - name: Setup Pages
# uses: actions/configure-pages@v3
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v1
# with:
# # リポジトリのアップロード
# path: './packages/frontend/remix/ladle-build'
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v1