This repository was archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
56 lines (53 loc) · 1.43 KB
/
pr-build.yml
File metadata and controls
56 lines (53 loc) · 1.43 KB
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
#
# Copyright (c) 2021 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Che-Theia workflow
# matrix jobs with alpine and ubi8
name: CI
# Trigger the workflow on pull request
on:
pull_request:
paths-ignore:
- '**/*.md'
- devfile.yaml
- 'devfiles/*'
- 'tools/*'
jobs:
node-build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
name: Checkout che-theia source code
with:
fetch-depth: "0"
- uses: actions/setup-node@v1
name: Configuring nodejs 10.x version
with:
node-version: '12.x'
- name: build
run: yarn
- name: Test Coverage
uses: codecov/codecov-action@v1
docker-build:
strategy:
matrix:
dist: [ 'alpine', 'ubi8' ]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
name: Checkout che-theia source code
- uses: actions/setup-node@v1
name: Configuring nodejs 10.x version
with:
node-version: '12.x'
- name: build
run: |
docker image prune -a -f
docker pull quay.io/eclipse/che-theia-dev:next
docker tag quay.io/eclipse/che-theia-dev:next eclipse/che-theia-dev:next
./build.sh --root-yarn-opts:--ignore-scripts --dockerfile:Dockerfile.${{matrix.dist}}