-
-
Notifications
You must be signed in to change notification settings - Fork 110
48 lines (38 loc) · 1.02 KB
/
reusable-build.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
name: Build Checks
on:
workflow_call:
jobs:
source:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Setup dependencies, cache and install
uses: ./.github/actions/install
- uses: google/wireit@setup-github-actions-caching/v1
- name: Build plugin
run: yarn pack
- name: Unit test
run: yarn test:unit -- --runInBand
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
continue-on-error: true
- name: Checkout e2e sources
uses: actions/checkout@v4
with:
ref: 'e2e/head'
fetch-depth: 0
path: ./e2e
- name: Functional test
run: yarn test:nut
- uses: actions/upload-artifact@v4
with:
name: coverage-test-report
path: reports/coverage