This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
feat(网易云音乐):抢新春好礼弹窗、分段广告(补充activityid)、音乐回忆弹窗、规则分类、播放页巨幅卡片式广告(补充规则)、VIP支付弹窗(优化规则、补充规则) #3335
Workflow file for this run
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: pull_request_check | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check: | |
if: github.repository == 'gkd-kit/subscription' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get changed files | |
id: changed_files | |
uses: tj-actions/changed-files@v39 | |
- name: Check changed files | |
run: | | |
if [ ${{ steps.changed_files.outputs.all_changed_files_count }} -ne 1 ]; then | |
echo "your changed files count must be 1" | |
exit 1 | |
fi | |
for file in ${{ steps.changed_files.outputs.all_changed_files }}; do | |
echo "$file was changed" | |
done | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- uses: pnpm/action-setup@v2 | |
- run: pnpm install | |
- run: pnpm run check | |
- run: pnpm run format | |
- run: pnpm run lint | |
- name: check format status | |
run: | | |
status=$(git status --porcelain) | |
if [ -n "$status" ]; then | |
echo "Something wasn’t formatted properly" | |
git --no-pager diff | |
exit 1 | |
fi |