@@ -161,54 +161,20 @@ jobs:
161161 PERCY_TOKEN : ${{ secrets.PERCY_TOKEN }}
162162 timeout-minutes : 10
163163
164- # Coverage disabled while these are worked out:
165- # https://github.com/babel/ember-cli-babel/issues/350
166- # https://github.com/ember-cli/babel-plugin-ember-modules-api-polyfill/issues/112
167- # test-with-coverage:
168- # runs-on: ubuntu-latest
169- # timeout-minutes: 10
170- # needs: build
171- # steps:
172- # - uses: actions/checkout@v2
173- # - uses: volta-cli/action@v1
174- # - uses: actions/download-artifact@v2
175- # with:
176- # name: dist
177- # path: ./dist
178- # - id: cache-node-modules
179- # uses: actions/cache@v2
180- # with:
181- # path: ./node_modules
182- # key: cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
183- # restore-keys: cached_node_modules_${{ secrets.CACHE_VERSION }}_
184- # - run: yarn test:cover --path ./dist
185- # - name: Save code coverage artifact
186- # uses: actions/upload-artifact@v2
187- # with:
188- # name: coverage-info
189- # path: ./coverage/lcov.info
190- #
191- # send-coverage:
192- # runs-on: ubuntu-latest
193- # timeout-minutes: 10
194- # needs: test
195- # steps:
196- # - uses: volta-cli/action@v1
197- # - uses: actions/download-artifact@v2
198- # with:
199- # name: coverage-info
200- # path: ./lcov.info
201- # - uses: actions/cache@v2
202- # with:
203- # path: ./node_modules
204- # key: cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
205- # restore-keys: cached_node_modules_${{ secrets.CACHE_VERSION }}_
206- # - name: Generate coverage report
207- # env:
208- # COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
209- # run: yarn coveralls
210- #
211- # - name: Send coverage report to coveralls
212- # uses: coverallsapp/github-action@master
213- # with:
214- # github-token: ${{ secrets.GITHUB_TOKEN }}
164+ test-with-coverage :
165+ needs : fetch-dependencies
166+ runs-on : ubuntu-latest
167+ steps :
168+ - uses : actions/checkout@v2
169+ - uses : volta-cli/action@v1
170+ - id : cache-node-modules
171+ uses : actions/cache@v2
172+ with :
173+ path : ./node_modules
174+ key : cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
175+ restore-keys : cached_node_modules_${{ secrets.CACHE_VERSION }}_
176+ - run : yarn test:ember:cover
177+ - name : Send coverage report to coveralls
178+ uses : coverallsapp/github-action@master
179+ with :
180+ github-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments