初始化版本,引入智慧食堂模块,第三方模块
This commit is contained in:
commit
d22f88efd3
677 files changed
+69341
No files matched your search
@@ -0,0 +1,50 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
task:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest, macOS-latest, ubuntu-latest]
|
||||
node-version: [16.x, 18.x, 20.x]
|
||||
npm-client: [npm, yarn, pnpm]
|
||||
|
||||
steps:
|
||||
- uses: pnpm/action-setup@v2
|
||||
if: matrix.npm-client == 'pnpm'
|
||||
name: Install pnpm
|
||||
with:
|
||||
version: 8
|
||||
run_install: false
|
||||
|
||||
- name: Set up Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install dependencies
|
||||
run: ${{ matrix.npm-client }} install
|
||||
|
||||
- name: Build
|
||||
run: ${{ matrix.npm-client }} run build
|
||||
|
||||
- name: Notify failure
|
||||
if: ${{ failure() }}
|
||||
env:
|
||||
QYWX_ROBOT_URL: ${{ secrets.QYWX_ROBOT_URL }}
|
||||
run: |
|
||||
curl -H "Content-Type: application/json" -X POST -d '{
|
||||
"msgtype": "text",
|
||||
"text": {
|
||||
"content": "Job failed! Click here for details: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
||||
}
|
||||
}' $QYWX_ROBOT_URL
|
||||
Reference in new issue
Block a user