Skip to content

Commit

Permalink
feat: add CI for MR
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniorTour committed Jan 21, 2024
1 parent 9a3c237 commit 1ad18eb
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/mr-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Merge Request CI'

on:
pull_request:
branches: [ "main" ]

# 定义工作 job
jobs:
prepare:
name: prepare
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Installing my packages
run: npm install
build:
name: build
steps:
- name: Build App
run: npm run build
lint:
name: lint
steps:
- npm run lint
test:
name: test
steps:
- npm run test:ci

0 comments on commit 1ad18eb

Please sign in to comment.