commit CI

This commit is contained in:
joonhang35 2024-07-25 11:44:30 +08:00
parent 966f883557
commit 2cae1842f7

46
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,46 @@
name: CI
on:
push:
branches:
- main
- 'feature/*'
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Run Lint
run: yarn lint
- name: Run Tests
run: yarn test
- name: Build project
run: yarn build
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build
path: .next/