Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 242c034

Browse files
committedFeb 24, 2023
chore(Build): add github action to build pull request
1 parent b879223 commit 242c034

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed
 

‎.github/workflows/build_1_3_x.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build 1.3.x
2+
3+
on:
4+
push:
5+
branches:
6+
- release-1.3.*
7+
- v1.3.*
8+
pull_request:
9+
branches:
10+
- release-1.3.*
11+
- v1.3.*
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-22.04
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Build Setup
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: '16'
25+
cache: 'npm'
26+
- name: Build
27+
run: |
28+
npm install -g grunt-cli@0.1.13
29+
npm i
30+
npm i
31+
npm run build:app
32+
- name: Tests
33+
run: |
34+
npm run test:app -- --browsers=ChromeHeadless
35+
npm run e2e -- --browsers=ChromeHeadless
36+

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"jshint-stylish": "~1.0.0",
5252
"karma": "0.12.32",
5353
"karma-browserstack-launcher": "0.1.2",
54-
"karma-chrome-launcher": "0.1.5",
54+
"karma-chrome-launcher": "2.2.0",
5555
"karma-firefox-launcher": "0.1.3",
5656
"karma-jasmine": "0.1.5",
5757
"karma-junit-reporter": "0.2.2",

‎protractor-conf.js

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ config.specs = [
1010

1111
config.capabilities = {
1212
browserName: 'chrome',
13+
chromeOptions: {
14+
args: ['--no-sandbox']
15+
}
1316
};
1417

1518
exports.config = config;

0 commit comments

Comments
 (0)
Please sign in to comment.