Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/build-ci-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Integration Test (Build)

on:
pull_request:
types:
- opened
- synchronize
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22.2.0

- name: Install pnpm
run: |
npm install -g pnpm

- name: Cache pnpm store
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: |
pnpm install

- name: Build the application
run: |
pnpm run build

- name: Save build artifacts
if: success()
uses: actions/upload-artifact@v4
with:
name: build
path: ./build
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ name: Deploy to Github Pages
on:
push:
branches:
- master
- main
pull_request:
branches:
- main

jobs:
build:
Expand Down Expand Up @@ -37,7 +40,7 @@ jobs:

- name: Download Artifacts
id: download-artifact
uses: dawidd6/action-download-artifact@v5
uses: dawidd6/action-download-artifact@v8
with:
workflow: build-ci-test.yaml
github_token: ${{secrets.GITHUB_TOKEN}}
Expand Down