-
-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (49 loc) · 1.42 KB
/
ember.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
name: Ember CI
on:
push:
paths:
- 'karutasrs-front/**'
- '.github/workflows/ember.yml'
pull_request:
paths:
- 'karutasrs-front/**'
- '.github/workflows/ember.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Node 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Install Chrome
run: |
sudo apt-get update
sudo apt-get install -yq libgconf-2-4
sudo apt-get install -y wget --no-install-recommends
sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install -y google-chrome-unstable --no-install-recommends
sudo rm -rf /var/lib/apt/lists/*
- name: Create .env-test file
run: |
cd karutasrs-front/config
cp .env-sample .env-test
- name: Build Ember application
run: |
cd karutasrs-front
npm i
- name: Test Ember
run: |
cd karutasrs-front
./node_modules/.bin/ember test
- name: Lint Ember templates
run: |
cd karutasrs-front
yarn lint:hbs
- name: Lint Ember JavaScript
run: |
cd karutasrs-front
yarn lint:js