-
Notifications
You must be signed in to change notification settings - Fork 277
34 lines (31 loc) · 949 Bytes
/
node-frontend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Frontend tests
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install themes dependencies
working-directory: ./themes-default/slim
run: yarn install --ignore-scripts
- name: Check themes builds
run: |
mv ./.github/build-themes-check.sh ./themes-default/slim
cd ./themes-default/slim
bash build-themes-check.sh
- name: Test lint
working-directory: ./themes-default/slim
run: yarn lint && yarn lint-css
- name: Test build
working-directory: ./themes-default/slim
run: yarn test
- name: Upload coverage to Codecov
working-directory: ./themes-default/slim
run: yarn coverage