feat: Test and ci #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Merge Request CI' | ||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
# 定义工作 job | ||
jobs: | ||
prepare: | ||
name: prepare | ||
Check failure on line 10 in .github/workflows/mr-ci.yml GitHub Actions / Merge Request CIInvalid workflow file
|
||
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 |