From 4a7dedaa1c860f37bf56622915d14845ebb98e0c Mon Sep 17 00:00:00 2001 From: Nik Date: Thu, 16 Jul 2026 22:32:54 +0800 Subject: [PATCH 1/4] add split jobs --- .github/workflows/deploy.yaml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index eb6dd89..a40e3dc 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,11 +1,21 @@ name: deploy on: [push, workflow_dispatch] +defaults: + run: + working-directory: launchpad + jobs: - say-hello: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-node@v7 + - run: npm clean-install + - run: npm run test + + deploy: + needs: test runs-on: ubuntu-latest - defaults: - run: - working-directory: launchpad steps: - uses: actions/checkout@v7 - uses: actions/setup-node@v7 @@ -15,6 +25,7 @@ jobs: with: path: launchpad/dist - uses: actions/deploy-pages@v5 - permissions: - pages: write - id-token: write \ No newline at end of file + +permissions: + pages: write + id-token: write \ No newline at end of file From f72d1452f2e31c68d34b87d9ce812bbb68cef1f4 Mon Sep 17 00:00:00 2001 From: Nik Date: Thu, 16 Jul 2026 22:34:37 +0800 Subject: [PATCH 2/4] add split job and fix bugs --- launchpad/ship.config.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launchpad/ship.config.json b/launchpad/ship.config.json index 0221b94..3f06886 100644 --- a/launchpad/ship.config.json +++ b/launchpad/ship.config.json @@ -1,6 +1,6 @@ { - "shipName": "Nebula Runner", - "color": "22d3ee", + "shipName": "DeathStar", + "color": "#22d3ee", "shipModel": "fighter", "emblem": "comet" } From 10c20914b7e0e1bbcd6fc282b519f76ece212912 Mon Sep 17 00:00:00 2001 From: Nik Date: Thu, 16 Jul 2026 22:37:51 +0800 Subject: [PATCH 3/4] testing for fail jobs --- launchpad/ship.config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launchpad/ship.config.json b/launchpad/ship.config.json index 3f06886..b733d06 100644 --- a/launchpad/ship.config.json +++ b/launchpad/ship.config.json @@ -1,6 +1,6 @@ { "shipName": "DeathStar", - "color": "#22d3ee", + "color": "22d3ee", "shipModel": "fighter", "emblem": "comet" } From 0c9d11cfb36372590852293d7bb835592494c84d Mon Sep 17 00:00:00 2001 From: Nik Date: Thu, 16 Jul 2026 22:42:32 +0800 Subject: [PATCH 4/4] fix the test --- launchpad/ship.config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launchpad/ship.config.json b/launchpad/ship.config.json index b733d06..3f06886 100644 --- a/launchpad/ship.config.json +++ b/launchpad/ship.config.json @@ -1,6 +1,6 @@ { "shipName": "DeathStar", - "color": "22d3ee", + "color": "#22d3ee", "shipModel": "fighter", "emblem": "comet" }