From 57fc56613a78cb71c5b1d61429fac3cf3b124f7b Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sun, 19 Sep 2021 16:29:12 +0800 Subject: [PATCH] ci: update --- .github/workflows/{node.js.yml => lint.yml} | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) rename .github/workflows/{node.js.yml => lint.yml} (62%) diff --git a/.github/workflows/node.js.yml b/.github/workflows/lint.yml similarity index 62% rename from .github/workflows/node.js.yml rename to .github/workflows/lint.yml index e4630514b..bb22f3972 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/lint.yml @@ -5,13 +5,12 @@ name: Node.js CI on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: build: - runs-on: ubuntu-latest strategy: @@ -20,12 +19,10 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - run: npm test + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm run lint