File tree Expand file tree Collapse file tree 7 files changed +27
-2214
lines changed Expand file tree Collapse file tree 7 files changed +27
-2214
lines changed Original file line number Diff line number Diff line change 1111 description : The commit SHA to run the workflow on
1212 required : false
1313 type : string
14- secrets :
15- codecov_token :
16- description : Codecov token
17- required : true
1814
1915jobs :
2016 build :
@@ -74,32 +70,11 @@ jobs:
7470 runs-on : ubuntu-latest
7571 needs : build
7672 steps :
77- - name : Checkout code
78- uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
79- with :
80- ref : ${{ inputs.sha }}
81-
8273 - name : Load test image
8374 uses : guidojw/actions/load-docker-image@abb0ee8d1336edf73383f2e5a09abd3a22f25b13 # v1.3.3
8475 with :
8576 name : app
8677
8778 - name : Test
8879 run : |
89- mkdir coverage
90- docker run -e CI=true -e COVERAGE=true -v "$(pwd)"'/coverage:/opt/app/coverage' app yarn test:ember
91-
92- - name : Upload coverage report to Codecov
93- if : ${{ !cancelled() }}
94- uses : codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
95- with :
96- fail_ci_if_error : true
97- token : ${{ secrets.CODECOV_TOKEN }}
98-
99- - name : Upload coverage report artifact
100- if : ${{ !cancelled() }}
101- uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
102- with :
103- name : coverage
104- path : coverage/
105- if-no-files-found : error
80+ docker run -e CI=true -t app yarn test:ember
Original file line number Diff line number Diff line change 22
33[ ![ Continuous Integration] ( https://github.com/csvalpha/amber-ui/actions/workflows/continuous-integration.yml/badge.svg )] ( https://github.com/csvalpha/amber-ui/actions/workflows/continuous-integration.yml )
44[ ![ Continuous Delivery] ( https://github.com/csvalpha/amber-ui/actions/workflows/continuous-delivery.yml/badge.svg )] ( https://github.com/csvalpha/amber-ui/actions/workflows/continuous-delivery.yml )
5- [ ![ codecov] ( https://codecov.io/gh/csvalpha/amber-ui/graph/badge.svg?token=GMTXV28YQF )] ( https://codecov.io/gh/csvalpha/amber-ui )
65
76## Prerequisites
87
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ module.exports = function (defaults) {
2323 } ,
2424
2525 babel : {
26- plugins : [ ...require ( 'ember-cli-code-coverage' ) . buildBabelPlugin ( ) ] ,
2726 sourceMaps : 'inline' ,
2827 } ,
2928
Original file line number Diff line number Diff line change 11export default function ( ) {
2- this . passthrough ( '/write-coverage' ) ;
3-
42 this . namespace = '/api/v1' ;
53
64 this . post (
Original file line number Diff line number Diff line change 4646 "ember-can" : " ^4.2.0" ,
4747 "ember-cli" : " ~4.11.0" ,
4848 "ember-cli-babel" : " ^7.26.10" ,
49- "ember-cli-code-coverage" : " ^2.0.0" ,
5049 "ember-cli-content-security-policy" : " ^2.0.3" ,
5150 "ember-cli-dependency-checker" : " ^3.2.0" ,
5251 "ember-cli-dropzonejs" : " ^1.3.6" ,
Original file line number Diff line number Diff line change @@ -4,18 +4,9 @@ import * as QUnit from 'qunit';
44import { setApplication } from '@ember/test-helpers' ;
55import { setup } from 'qunit-dom' ;
66import { start } from 'ember-qunit' ;
7- import {
8- forceModulesToBeLoaded ,
9- sendCoverage ,
10- } from 'ember-cli-code-coverage/test-support' ;
117
128setApplication ( Application . create ( config . APP ) ) ;
139
1410setup ( QUnit . assert ) ;
1511
16- QUnit . done ( async function ( ) {
17- forceModulesToBeLoaded ( ) ;
18- await sendCoverage ( ) ;
19- } ) ;
20-
2112start ( ) ;
You can’t perform that action at this time.
0 commit comments