Skip to content

Commit 59542f9

Browse files
committed
update ci
1 parent 5a30535 commit 59542f9

File tree

1 file changed

+3
-39
lines changed

1 file changed

+3
-39
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -83,28 +83,9 @@ jobs:
8383
test-unit:
8484
name: Test - Unit
8585
needs: [deps]
86-
runs-on: ${{ vars.MACHINE }}
87-
steps:
88-
- uses: actions/checkout@v4
89-
90-
- name: Setup Node.js
91-
uses: actions/setup-node@v4
92-
with:
93-
node-version: ${{ vars.NODE_VERSION }}
94-
95-
- name: Cache restore node_modules
96-
uses: actions/cache/restore@v4
97-
with:
98-
fail-on-cache-miss: true
99-
path: node_modules/
100-
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
101-
102-
- run: npm run test:unit
103-
104-
- uses: actions/upload-artifact@v4
105-
with:
106-
name: coverage
107-
path: coverage/
86+
uses: ./.github/workflows/base-x.yml
87+
with:
88+
command: npm run test:unit
10889

10990
lint:
11091
name: Lint
@@ -153,20 +134,3 @@ jobs:
153134
# - run: npm publish --provenance --access public
154135
# env:
155136
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
156-
157-
artifact:
158-
name: Upload build artifact
159-
runs-on: ${{ vars.MACHINE }}
160-
needs: [build, test-unit, test-integration, check-exports, lint]
161-
steps:
162-
- name: Cache restore build
163-
uses: actions/cache/restore@v4
164-
with:
165-
fail-on-cache-miss: true
166-
path: dist/
167-
key: ${{ runner.os }}-build-${{ github.sha }}
168-
169-
- uses: actions/upload-artifact@v4
170-
with:
171-
name: build
172-
path: dist/

0 commit comments

Comments
 (0)