Skip to content

Commit

Permalink
feat: add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed Jul 24, 2024
1 parent e1ad608 commit 5bf1f0e
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Create .env file
run: |
touch .env
echo "${{ secrets.ENV_DEVELOPMENT }}" > .env
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '20'
- run: npm install
- run: npm run lint

build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Create .env file
run: |
touch .env
echo "${{ secrets.ENV_DEVELOPMENT }}" > .env
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '20'
- run: npm install
- run: CI='false' npm run build

0 comments on commit 5bf1f0e

Please sign in to comment.