Skip to content

Commit

Permalink
Client CI 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
seungh0 committed Jul 2, 2024
1 parent 61e1682 commit 3786ae8
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/ci-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "CI (Client)"
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
push:
branches:
- main
workflow_dispatch:

env:
CI: ''
jobs:
ci:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 14, 16, 18 ]
steps:
- name: checkout@v4
uses: actions/checkout@v4

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install and Build
run: |
npm install
npm run build
working-directory: cadio-web/src/main/webapp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CI"
name: "CI (Server)"

on:
pull_request:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ bin/
.idea

node_modules/
**/build/

0 comments on commit 3786ae8

Please sign in to comment.