Skip to content

Commit

Permalink
feat: git action ci
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed May 9, 2024
1 parent be2e419 commit 6133a6a
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CI

on:
pull_request:
branches:
- main
- develop

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

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

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

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

test:
name: Test
runs-on: ubuntu-latest

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

0 comments on commit 6133a6a

Please sign in to comment.