Skip to content

Commit

Permalink
build: use eslint in github action and deactive useless workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
swsoyee committed Jan 10, 2021
1 parent 634d3af commit 5916729
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 18 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint

on:
pull_request:
push:
branches:
- master

jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14'
- run: npm ci # or yarn install
- uses: sibiraj-s/action-eslint@v1
with:
eslintArgs: '--ignore-path .gitignore --quiet'
extensions: 'js, jsx, ts, tsx'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 changes: 18 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: 压缩脚本
# name: 压缩脚本

on:
pull_request:
paths:
- psnineplus.js
branches: [ master ]
# on:
# pull_request:
# paths:
# - psnineplus.js
# branches: [ master ]

jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 自动压缩
uses: nizarmah/auto-minify@master
- name: 自动提交所生成的压缩文件
uses: stefanzweifel/[email protected]
with:
commit_message: "Github Action: 生成压缩文件"
branch: ${{ github.ref }}
# jobs:
# label:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: 自动压缩
# uses: nizarmah/auto-minify@master
# - name: 自动提交所生成的压缩文件
# uses: stefanzweifel/[email protected]
# with:
# commit_message: "Github Action: 生成压缩文件"
# branch: ${{ github.ref }}

0 comments on commit 5916729

Please sign in to comment.