Skip to content

Commit 349c5cc

Browse files
Raphaël DrozRaphaël Droz
andauthored
ci: added GitHub status check and reference SauceLabs URL (#362)
Co-authored-by: Raphaël Droz <raphael.droz+floss@gmail.com>
1 parent 6d20f89 commit 349c5cc

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/actions.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ on:
44
pull_request:
55
push:
66
branches:
7+
- 'v3'
78
- 'feature/*'
9+
- 'fix/*'
810
workflow_dispatch:
911

1012
env:
@@ -42,10 +44,13 @@ jobs:
4244
testing-environment: ""
4345
concurrency: 10
4446

45-
- run: grunt --version
47+
- run: |
48+
grunt --version
49+
sed -i '/log.info(`Check out job at/a\\ console.log(`::set-output name=urls-${sessionId}::${getSauceEndpoint(browserData.region)}${sessionId}`);' node_modules/karma-sauce-launcher/dist/reporter/reporter.js || true
4650
4751
- name: Run tests
4852
run: grunt karma:saucelabs
53+
id: test
4954

5055
- name: Run code coverage
5156
uses: paambaati/codeclimate-action@v2.7.5
@@ -55,6 +60,16 @@ jobs:
5560
prefix: .
5661
coverageLocations: |
5762
${{github.workspace}}/coverage/lcov/result.lcov:lcov
63+
id: coverage
5864

5965
- name: debug
60-
run: ls -lhR coverage
66+
run: ls -lhR coverage || true
67+
68+
- uses: LouisBrunner/checks-action@v1.1.1
69+
if: always()
70+
with:
71+
token: ${{ secrets.GITHUB_TOKEN }}
72+
name: Testsuite passed
73+
conclusion: ${{ job.status }}
74+
output: |
75+
{"summary":"${{join(steps.test.outputs.*, ', ')}}"}

0 commit comments

Comments
 (0)