Skip to content

feat: Test and ci

feat: Test and ci #2

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Merge Request CI

Invalid workflow file

The workflow is not valid. .github/workflows/mr-ci.yml (Line: 10, Col: 5): Required property is missing: runs-on .github/workflows/mr-ci.yml (Line: 21, Col: 5): Required property is missing: runs-on
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