Skip to content

Commit

Permalink
Merge branch 'develop' into fix/backend/fixed-db-addr
Browse files Browse the repository at this point in the history
  • Loading branch information
h-takeyeah authored Mar 10, 2024
2 parents ca02da7 + 981cce7 commit e968f97
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/actions/prepare-nodemodules/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Prepare node_modules

description: Install Dependencies using Bun. If cache hit, do nothing.

inputs:
root:
description: |-
An absolute path to the directory where contains package.json.
Required
required: true

runs:
using: composite
steps:
- uses: actions/cache@v4
id: cache
with:
path: |
${{ inputs.root }}/node_modules
${{ inputs.root }}/.next/cache
key: ${{ runner.os }}-bun-cache-${{ hashFiles('**/bun.lockb') }}
restore-keys: ${{ runner.os }}-bun-cache-
- uses: oven-sh/setup-bun@v1
if: steps.cache.outputs.cache-hit != 'true'
with:
bun-version: latest
- name: Install dependencies
shell: bash
if: steps.cache.outputs.cache-hit != 'true'
working-directory: ${{ inputs.root }}
run: bun install
33 changes: 33 additions & 0 deletions .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build-app

on:
pull_request:
branches:
- develop
- main
paths:
- .github/workflows/build-app.yml
- "typing-app/**"
workflow_dispatch:

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

defaults:
run:
working-directory: typing-app

jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare-nodemodules
with:
root: ${{ github.workspace }}/typing-app
- name: Build Next.js Project
run: npm run build

0 comments on commit e968f97

Please sign in to comment.