Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: optimize ci name #218

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading