激活卡时冲抵基础账户负数 #28
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: Admin test | |
on: | |
push: | |
pull_request: | |
jobs: | |
eslint: | |
if: github.repository == 'imiphp/imi-ai' | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
working-directory: admin | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Get npm cache directory | |
id: npm-cache-dir | |
shell: bash | |
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} | |
- uses: actions/cache@v3 | |
id: npm-cache | |
with: | |
path: ${{ steps.npm-cache-dir.outputs.dir }} | |
key: ${{ runner.os }}-node | |
restore-keys: ${{ runner.os }}-node | |
- name: Install | |
run: npm i | |
- name: Lint | |
run: npm run lint | |
vue-tsc: | |
if: github.repository == 'imiphp/imi-ai' | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
working-directory: admin | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Get npm cache directory | |
id: npm-cache-dir | |
shell: bash | |
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} | |
- uses: actions/cache@v3 | |
id: npm-cache | |
with: | |
path: ${{ steps.npm-cache-dir.outputs.dir }} | |
key: ${{ runner.os }}-node | |
restore-keys: ${{ runner.os }}-node | |
- name: Install | |
run: npm i | |
- name: Typecheck | |
run: npm run typecheck |