Skip to content

Commit

Permalink
Merge pull request #17 from ycu-engine/feat/ci
Browse files Browse the repository at this point in the history
PRをチェックするGitHub Actionsワークフローを作成
  • Loading branch information
nyatinte authored Feb 11, 2024
2 parents b9ad83c + ad17106 commit 275ac08
Showing 1 changed file with 88 additions and 0 deletions.
88 changes: 88 additions & 0 deletions .github/workflows/check-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Check Pull Request
on:
pull_request:
jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 10
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 8
- 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
- name: Run Build
run: pnpm build
biome-check:
runs-on: ubuntu-20.04
timeout-minutes: 10
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 8
- 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
- name: Run Biome Check
run: pnpm check
vitest:
runs-on: ubuntu-20.04
timeout-minutes: 10
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 8
- 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
- name: Run Vitest
run: pnpm test
markuplint:
runs-on: ubuntu-20.04
timeout-minutes: 10
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 8
- 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
- name: Run markuplint
run: pnpm markuplint

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

0 comments on commit 275ac08

Please sign in to comment.