-
-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (31 loc) · 854 Bytes
/
reusable-build.yml
File metadata and controls
41 lines (31 loc) · 854 Bytes
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
---
name: Build Checks
on:
workflow_call:
jobs:
source:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v5
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- uses: google/wireit@setup-github-actions-caching/v2
- name: Setup dependencies, cache and install
uses: ./.github/actions/install
- name: Lint plugin
run: npm run lint
- name: Build plugin
run: npm pack
- name: Unit test
run: npm run test:unit -- --runInBand
- name: Install cli
run: npm install -g @salesforce/cli
- name: Integration test
run: npm run test:nut
- uses: actions/upload-artifact@v4
with:
name: coverage-test-report
path: reports/coverage