forked from dxc-technology/halstack-react
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (25 loc) · 773 Bytes
/
pull-request.yml
File metadata and controls
35 lines (25 loc) · 773 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
name: Build and test
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
registry-url: https://registry.npmjs.org/
- name: Install lib dependencies
run: cd lib && npm install
- name: Build library
run: cd lib && npm run build
- name: Install website dependencies
run: cd website && npm i
- name: Test library
run: cd lib && npm run test
- name: Test library accessibility
run: cd lib && npm run test:accessibility
- name: Build website
run: cd website && npm run build