generated from RedHatInsights/frontend-starter-app
-
Notifications
You must be signed in to change notification settings - Fork 16
62 lines (52 loc) · 1.38 KB
/
provisioning-front.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build and release
on:
push:
branches:
- main
- stage-stable
- prod-beta
- prod-stable
pull_request:
jobs:
commit:
name: "💾 Commit message"
if: github.ref_name != 'main' && github.ref_name != 'prod-beta' && ! contains(github.ref_name, 'stable')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 2
path: code
- uses: actions/checkout@v3
with:
repository: "RHEnVision/changelog"
path: changelog
- run: pip3 install ./changelog
- run: python3 -m rhenvision_changelog commit-check
working-directory: code
build:
name: "📎 Lint, test and build"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.19.0]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Running tests
run: npm test
- name: Run build
run: npm run build
- uses: actions/upload-artifact@v3
with:
name: build
path: dist/*