Skip to content

Commit

Permalink
Add: 自動ビルドのワークフロー
Browse files Browse the repository at this point in the history
  • Loading branch information
MijinkoSD committed May 6, 2024
1 parent 37d0d23 commit 0f8f17a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 5 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Run test

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: write # needed to commit the changes

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18.13"

- name: Setup Pnpm
uses: pnpm/action-setup@v3
with:
version: 9.0.6

- name: Install dependencies
run: pnpm install

- name: Run Build
run: pnpm build

- name: Commit badges
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: "dist"
4 changes: 2 additions & 2 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4.0.2
uses: actions/setup-node@v4
with:
node-version: "18.13"
- name: Setup Pnpm
uses: pnpm/action-setup@v3.0.0
uses: pnpm/action-setup@v3
with:
version: 9.0.6

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4.0.2
uses: actions/setup-node@v4
with:
node-version: "18.13"

- name: Setup Pnpm
uses: pnpm/action-setup@v3.0.0
uses: pnpm/action-setup@v3
with:
version: 9.0.6

Expand Down Expand Up @@ -65,6 +65,6 @@ jobs:
badge-path: docs/images/coverage/branches-badge.svg

- name: Commit badges
uses: stefanzweifel/git-auto-commit-action@v5.0.1
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: "docs/images/coverage/*.svg"

0 comments on commit 0f8f17a

Please sign in to comment.