Skip to content

Commit ead9958

Browse files
committed
ci
1 parent 79bb5eb commit ead9958

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/examples.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ on:
77
paths:
88
- 'examples/**/*'
99
- 'templates/**/*'
10+
- 'patterns/navigation-layout/**/*'
1011
pull_request:
1112
paths:
1213
- 'examples/**/*'
1314
- 'templates/**/*'
15+
- 'patterns/navigation-layout/**/*'
1416

1517
jobs:
1618
examples:
@@ -77,3 +79,33 @@ jobs:
7779
- name: ESLint
7880
run: npm run lint --if-present
7981
working-directory: templates/${{ matrix.path }}
82+
83+
patterns:
84+
runs-on: ubuntu-latest
85+
strategy:
86+
matrix:
87+
path:
88+
- patterns/navigation-layout
89+
fail-fast: false
90+
steps:
91+
- uses: actions/checkout@v4
92+
93+
- uses: actions/[email protected]
94+
with:
95+
node-version-file: '.nvmrc'
96+
97+
- name: Install
98+
run: npm ci
99+
working-directory: templates/${{ matrix.path }}
100+
101+
- name: Build
102+
run: npm run build
103+
working-directory: templates/${{ matrix.path }}
104+
105+
- name: Test
106+
run: npm run test --if-present
107+
working-directory: templates/${{ matrix.path }}
108+
109+
- name: ESLint
110+
run: npm run lint --if-present
111+
working-directory: templates/${{ matrix.path }}

0 commit comments

Comments
 (0)