8
- ".github/workflows/ci-frontend.yml"
9
- "frontend/apps/remark42/**"
13
- ".github/workflows/ci-frontend.yml"
14
- "frontend/apps/remark42/**"
19
name: Translations check
20
runs-on: ubuntu-latest
27
uses: actions/checkout@v4
30
uses: actions/setup-node@v4
32
node-version: ${{ matrix.node }}
35
uses: pnpm/action-setup@v2.4.0
41
- name: Get pnpm store directory
44
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
46
- name: Setup pnpm cache
47
uses: actions/cache@v3
49
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
50
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
52
${{ runner.os }}-pnpm-store-
54
- name: Install dependencies
56
working-directory: ./frontend
58
- name: Translations check
59
run: pnpm translation-check
60
working-directory: ./frontend/apps/remark42
64
runs-on: ubuntu-latest
71
uses: actions/checkout@v4
74
uses: actions/setup-node@v4
76
node-version: ${{ matrix.node }}
79
uses: pnpm/action-setup@v2.4.0
85
- name: Get pnpm store directory
88
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
90
- name: Setup pnpm cache
91
uses: actions/cache@v3
93
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
94
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
96
${{ runner.os }}-pnpm-store-
98
- name: Install dependencies
100
working-directory: ./frontend
102
- name: Run type check
104
working-directory: ./frontend/apps/remark42
107
name: Eslint & Stylelint
108
runs-on: ubuntu-latest
115
uses: actions/checkout@v4
118
uses: actions/setup-node@v4
120
node-version: ${{ matrix.node }}
123
uses: pnpm/action-setup@v2.4.0
129
- name: Get pnpm store directory
132
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
134
- name: Setup pnpm cache
135
uses: actions/cache@v3
137
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
138
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
140
${{ runner.os }}-pnpm-store-
142
- name: Install dependencies
144
working-directory: ./frontend
148
working-directory: ./frontend/apps/remark42
152
runs-on: ubuntu-latest
153
if: github.event_name == 'pull_request'
158
uses: actions/checkout@v4
161
uses: pnpm/action-setup@v2.4.0
167
- name: Check bundle size
168
uses: andresz1/size-limit-action@7313b26c76b3666c1dc41e2ca05370e201a9b7de
170
github_token: ${{ secrets.GITHUB_TOKEN }}
171
directory: ./frontend/apps/remark42
172
package_manager: pnpm
175
name: Tests & Coverage
176
runs-on: ubuntu-latest
183
uses: actions/checkout@v4
186
uses: actions/setup-node@v4
188
node-version: ${{ matrix.node }}
191
uses: pnpm/action-setup@v2.4.0
197
- name: Get pnpm store directory
200
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
202
- name: Setup pnpm cache
203
uses: actions/cache@v3
205
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
206
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
208
${{ runner.os }}-pnpm-store-
210
- name: Install dependencies
212
working-directory: ./frontend
214
- name: Test & Coverage
216
working-directory: ./frontend/apps/remark42
218
- name: Submit coverage
219
run: ${{ github.workspace }}/frontend/apps/remark42/node_modules/.bin/codecov
221
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}