-
Notifications
You must be signed in to change notification settings - Fork 26
59 lines (55 loc) · 1.83 KB
/
frontend-app-test.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: Frontend Application tests
on: pull_request
jobs:
test:
name: Frontend tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rwjblue/setup-volta@v1
- uses: H1D/actions-ember-testing@8ca8da615c2db5889b7fbd3834e4093706754435
- name: Install dependencies
working-directory: ./frontend
run: yarn install
- name: Lint *.js files
working-directory: ./frontend
run: yarn lint:js
- name: Lint *.hbs files
working-directory: ./frontend
run: yarn lint:hbs
- name: Run tests
working-directory: ./frontend
run: yarn test
- name: Run test deploy
working-directory: ./frontend
run: node node_modules/ember-cli/bin/ember deploy production
coverage:
name: Test coverage changes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rwjblue/setup-volta@v1
- uses: H1D/actions-ember-testing@8ca8da615c2db5889b7fbd3834e4093706754435
- name: Install dependencies
working-directory: ./frontend
run: yarn install
- uses: mydea/ember-cli-code-coverage-action@e4130abc6c57d272d9d123870c26b8c284128adc
with:
working-directory: ./frontend
test-command: "yarn test:coverage"
coverage-file: "./frontend/coverage/coverage-summary.json"
repo-token: "${{ secrets.GITHUB_TOKEN }}"
message: "Frontend test coverage: {testCoverage}%"
# build:
# name: App build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Change dir to frontend
# run: cd frontend
# - uses: simplabs/ember-asset-size-action@v1
# with:
# working-directory: ./frontend
# repo-token: "${{ secrets.GITHUB_TOKEN }}"