Skip to content

Commit bcd1572

Browse files
committed
ci: single serial job without matrix or dist artifact
- One job: lint, build, typecheck, then per-package coverage + octocov - Drop upload/download tarball; actions permission back to read Made-with: Cursor
1 parent a029d9c commit bcd1572

1 file changed

Lines changed: 23 additions & 58 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 23 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -8,98 +8,63 @@ on:
88

99
permissions:
1010
contents: read
11-
actions: write # workspace-dist artifact(tar 1 本で packages/*/dist の階層を保持)
11+
actions: read
1212
pull-requests: write
1313

1414
jobs:
15-
lint:
15+
ci:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- &checkout
19-
uses: actions/checkout@v6
18+
- uses: actions/checkout@v6
2019

21-
- &setup-bun
22-
uses: oven-sh/setup-bun@v2
20+
- uses: oven-sh/setup-bun@v2
2321
with:
2422
bun-version: 1.2.17
2523

26-
- &cache
27-
name: cache
24+
- name: cache
2825
uses: actions/cache@v5
2926
with:
3027
path: ~/.bun/install/cache
3128
key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
3229
restore-keys: |
3330
bun-${{ runner.os }}-
3431
35-
- &install
36-
name: Install dependencies
32+
- name: Install dependencies
3733
run: bun install --frozen-lockfile
3834

3935
- name: Lint
4036
run: bun run lint
4137

42-
build:
43-
runs-on: ubuntu-latest
44-
steps:
45-
- *checkout
46-
- *setup-bun
47-
- *cache
48-
- *install
49-
5038
- name: Build
5139
run: bun run build
5240

5341
- name: Type check
5442
run: bun run typecheck
5543

56-
- name: Pack workspace dist
57-
run: |
58-
find packages -maxdepth 2 -type d -name dist -print | LC_ALL=C sort > dist-list.txt
59-
test -s dist-list.txt
60-
tar czf workspace-dist.tar.gz -T dist-list.txt
44+
- name: Test with coverage (@vimee/core)
45+
run: bun run --filter @vimee/core test:coverage
6146

62-
- name: Upload workspace dist
63-
uses: actions/upload-artifact@v4
47+
- uses: k1LoW/octocov-action@v1
6448
with:
65-
name: workspace-dist
66-
path: workspace-dist.tar.gz
49+
config: packages/core/.octocov.yml
6750

68-
test-coverage:
69-
name: test-coverage (${{ matrix.package }})
70-
needs: build
71-
runs-on: ubuntu-latest
72-
strategy:
73-
fail-fast: false
74-
matrix:
75-
include:
76-
- package: '@vimee/core'
77-
octocov: packages/core/.octocov.yml
78-
- package: '@vimee/react'
79-
octocov: packages/react/.octocov.yml
80-
- package: '@vimee/plugin-textarea'
81-
octocov: packages/plugin-textarea/.octocov.yml
82-
- package: '@vimee/shiki-editor'
83-
octocov: packages/shiki-editor/.octocov.yml
84-
steps:
85-
- *checkout
86-
- *setup-bun
87-
- *cache
88-
- *install
51+
- name: Test with coverage (@vimee/react)
52+
run: bun run --filter @vimee/react test:coverage
8953

90-
- name: Download workspace dist
91-
uses: actions/download-artifact@v4
54+
- uses: k1LoW/octocov-action@v1
9255
with:
93-
name: workspace-dist
94-
path: .
56+
config: packages/react/.octocov.yml
57+
58+
- name: Test with coverage (@vimee/plugin-textarea)
59+
run: bun run --filter @vimee/plugin-textarea test:coverage
9560

96-
- name: Unpack workspace dist
97-
run: tar xzf workspace-dist.tar.gz
61+
- uses: k1LoW/octocov-action@v1
62+
with:
63+
config: packages/plugin-textarea/.octocov.yml
9864

99-
- name: Test with coverage
100-
run: bun run --filter ${{ matrix.package }} test:coverage
101-
working-directory: .
65+
- name: Test with coverage (@vimee/shiki-editor)
66+
run: bun run --filter @vimee/shiki-editor test:coverage
10267

10368
- uses: k1LoW/octocov-action@v1
10469
with:
105-
config: ${{ matrix.octocov }}
70+
config: packages/shiki-editor/.octocov.yml

0 commit comments

Comments
 (0)