Skip to content

chore: 更新入群二维码 #146

chore: 更新入群二维码

chore: 更新入群二维码 #146

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: ['14', '16', '18']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install deps
run: |
# 解决 Windows 下的超时问题
# https://github.com/yarnpkg/yarn/issues/8242
yarn config set network-timeout 300000
yarn
- name: Test
run: yarn test
- name: Codecov
if: matrix.os == 'ubuntu-latest'
run: yarn codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}