Skip to content

Commit

Permalink
chore: optimize ci name
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteZhang1024 committed Aug 5, 2024
1 parent 7f33acd commit c45d077
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
name: test_web
name: deploy-dapp-example-web

on:
workflow_dispatch:
push:
branches: [main,master]
pull_request:
branches: [main,master]

jobs:
test_web:
deploy:
runs-on: ubuntu-latest
env:
TEST_ENDPOINT: dapp-example.onekeytest.com
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: publish-packages
name: publish-npm-packages

on: workflow_dispatch

Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/test-example-web-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: test-example-web-build

on:
pull_request:
branches: [main,master]

jobs:
test_build_web:
runs-on: ubuntu-latest
env:
TEST_ENDPOINT: dapp-example.onekeytest.com
steps:
- uses: actions/checkout@v4

- name: Setup Environment
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

- name: Install Dependency
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo 'skipped yarn install at workspace root'
- name: Build Target
run: |
yarn example-build
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml → .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: test-lint

on:
pull_request:
Expand All @@ -9,7 +9,7 @@ on:
- master

jobs:
test:
lint:
runs-on: ${{ matrix.os }}

strategy:
Expand Down

0 comments on commit c45d077

Please sign in to comment.