Skip to content

Commit

Permalink
chore: 🤖 update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
黄宗哲 authored and 黄宗哲 committed Oct 18, 2024
1 parent 7ef8655 commit b0125b4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 23 deletions.
1 change: 1 addition & 0 deletions .github/workflows/common-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'

- name: Cache node modules
uses: actions/cache@v4
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/jestTest.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Test by jest

on: [pull_request]
on: [pull_request, push]

jobs:
lint:
uses: ./.github/workflows/common-setup.yml
with:
cache-name: cache-node-modules
test:
- name: Setup Node
uses: ./.github/workflows/common-setup.yml

steps:
- name: Run Jest Test
run: pnpm run -C apps/aelf-template test
- name: Run Jest Test
run: pnpm run -C apps/aelf-template test
14 changes: 6 additions & 8 deletions .github/workflows/nextBuild.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Next Build

on: [pull_request]
on: [pull_request, push]

jobs:
lint:
uses: ./.github/workflows/common-setup.yml
with:
cache-name: cache-node-modules
build:
- name: Setup Node
uses: ./.github/workflows/common-setup.yml

steps:
- name: Run Next Build
run: pnpm run -C apps/aelf-template build
- name: Run Next Build
run: pnpm run -C apps/aelf-template build
12 changes: 5 additions & 7 deletions .github/workflows/nextLint.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Next Lint

on: [pull_request]
on: [pull_request, push]

jobs:
lint:
uses: ./.github/workflows/common-setup.yml
with:
cache-name: cache-node-modules
- name: Setup Node
uses: ./.github/workflows/common-setup.yml

steps:
- name: Run ESLint
run: pnpm run -C apps/aelf-template lint
- name: Run ESLint
run: pnpm run -C apps/aelf-template lint

0 comments on commit b0125b4

Please sign in to comment.