Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
dee17bb
Badge puch condition
demyanets May 21, 2020
a5b7aa4
Run build and test on all branches
demyanets May 21, 2020
5db2783
Modified logicxal expression
demyanets May 21, 2020
74d0d40
Excerp protected branches from badge push
demyanets May 21, 2020
527ab7a
Simplified push logic
demyanets May 21, 2020
ec87ac9
Echo fix
demyanets May 21, 2020
11d0ece
Badge update
actions-user May 21, 2020
72e8448
Coverage badge update trigger
demyanets May 21, 2020
4aea76e
Coverage badge update trigger
actions-user May 21, 2020
6be14e8
Avoid push on pull request
demyanets May 21, 2020
9006518
Merge branch 'feature/coverage-badges' of https://github.com/demyanet…
demyanets May 21, 2020
3eeba32
Coverage badge update trigger
actions-user May 21, 2020
13baa31
echo github.ref
demyanets May 21, 2020
168da66
Merge branch 'feature/coverage-badges' of https://github.com/demyanet…
demyanets May 21, 2020
529b598
Coverage badge update trigger
actions-user May 21, 2020
0d29f37
echo ${github.ref}
demyanets May 21, 2020
756aab6
echo $GITHUB_REF
demyanets May 21, 2020
4b96b88
Coverage badge update trigger
actions-user May 21, 2020
6e08b93
Added pull request discovery
demyanets May 21, 2020
5a01334
Coverage badge update trigger
actions-user May 21, 2020
eb5cce3
Try to retrieve git diff stats
demyanets May 21, 2020
fd71dda
Correct GIT_DIFF_STATS usage
demyanets May 21, 2020
2f12209
Coverage badge update trigger
actions-user May 21, 2020
784beef
Grep SVG differences
demyanets May 21, 2020
eb86b3d
Merge branch 'feature/coverage-badges' of https://github.com/demyanet…
demyanets May 21, 2020
7b3e50f
Detect coverage badge changes
demyanets May 21, 2020
0be8ce4
Coverage badge update trigger
actions-user May 21, 2020
f855dc4
Commit only on differences
demyanets May 21, 2020
0fa86b4
Test coverage badge change
demyanets May 21, 2020
3e74564
Coverage badge update trigger
actions-user May 21, 2020
eb7e9e8
Improved workflow formatting
demyanets May 21, 2020
377e270
Improved badge update logic
demyanets May 21, 2020
8e33179
Protected branch detection fix
demyanets May 21, 2020
c924bbc
Correct push logical expression
demyanets May 21, 2020
96e4475
Extract update-badge job
demyanets May 21, 2020
22e6496
Revert update-badge job
demyanets May 21, 2020
9cc028e
Test action 1
demyanets Jun 1, 2020
3aeae88
Test action 2
demyanets Jun 1, 2020
caefee6
Test action 3
demyanets Jun 1, 2020
cb3b2ce
Test action 4
demyanets Jun 1, 2020
cf1477e
angular-coverage-badges-action test
demyanets Jun 14, 2020
1a9e8be
angular-coverage-badges-action test
demyanets Jun 14, 2020
5aac4d1
angular-coverage-badges-action test
demyanets Jun 20, 2020
7906a63
angular-coverage-badges-action test
demyanets Jun 20, 2020
fe39d17
angular-coverage-badges-action
demyanets Jun 20, 2020
50dca7e
Coverage badge update
actions-user Jun 20, 2020
dd1f2a0
angular-coverage-badges-action configuarble logging
demyanets Jun 21, 2020
ee8ee88
Merge branch 'feature/coverage-badges' of https://github.com/demyanet…
demyanets Jun 21, 2020
1ef9bf9
Test angular-coverage-badges-action
demyanets Jun 26, 2020
8fcadb7
Setup .gitignore for badges
demyanets Jun 27, 2020
c0ec4b8
angular-coverage-badges-action test
demyanets Jun 27, 2020
d751dc6
.gitignore adopted for badge libraray subdirectory
demyanets Jun 28, 2020
1c6cb9e
Coverage badge update
actions-user Jun 28, 2020
e83b1bb
angular-coverage-badges-action test
demyanets Jun 28, 2020
b483545
Merge branch 'feature/coverage-badges' of https://github.com/demyanet…
demyanets Jun 28, 2020
0e2f1bd
Badges were removed
demyanets Jun 28, 2020
2ba480e
Removed external coverage badge plugin
demyanets Jun 28, 2020
aa0d549
Coverage badge update
actions-user Jun 28, 2020
46e58db
Removed badges
demyanets Jun 28, 2020
f53fff0
Coverage badge update
actions-user Jun 28, 2020
1acf894
Removed badges
demyanets Jun 28, 2020
e23f972
Coverage badge update
actions-user Jun 28, 2020
2505945
Removed badges
demyanets Jun 28, 2020
7fb6f52
Coverage badge update
actions-user Jun 28, 2020
f300fe0
Badges removed
demyanets Jun 28, 2020
5dbf332
Coverage badge update
actions-user Jun 28, 2020
868d68f
Badges removed
demyanets Jun 28, 2020
0631ad5
Coverage badge update
actions-user Jun 28, 2020
12a653c
No debugging log
demyanets Jun 28, 2020
588466f
Coverage badge update
actions-user Jun 28, 2020
3757364
Released angular-coverage-badges-action
demyanets Jun 29, 2020
cb29d8a
Repo token configuration
demyanets Jul 5, 2020
240cd42
Merge branch 'feature/coverage-badges' of https://github.com/demyanet…
demyanets Jul 5, 2020
6b03d82
Update test.yml
demyanets Jul 5, 2020
f61c1d7
Test angular-coverage-badges-actio
demyanets Jul 8, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ name: build
on:
push:
branches:
- master
- develop
- '**'
pull_request:
branches:
- master
Expand Down
27 changes: 11 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ name: test
on:
push:
branches:
- master
- develop
- '**'

pull_request:
branches:
- master
- develop

jobs:
build:
test:

runs-on: ubuntu-latest

Expand Down Expand Up @@ -50,18 +50,13 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: coverage/stslib/coverage-summary.json
- name: Commit coverage badges
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "Badge update" -- badges

- name: Read current branch name
uses: nelonoel/branch-name@v1
# Use branch name for whatever purpose
- run: echo ${BRANCH_NAME}
- name: Push changes
uses: ad-m/github-push-action@master
# Coverage badges will be updated on any branch except protected
# branches 'develop' and 'master' and on a pull requests
- name: Test angular action
uses: demyanets/angular-coverage-badges-action@v1
with:
branch: ${{ env.BRANCH_NAME }}
github_token: ${{ secrets.GITHUB_TOKEN }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
coverage-summary-path: coverage/stslib/coverage-summary.json
protected-branches: '["master", "develop"]'
write-debug-logs: true
4 changes: 0 additions & 4 deletions badges/coverage.svg

This file was deleted.

6 changes: 6 additions & 0 deletions badges/stslib/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ignore everything in this directory
*
# Except this file, badges and subdirectories
!.gitignore
!*.svg
!/**
1 change: 1 addition & 0 deletions badges/stslib/coverage-branches.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions badges/stslib/coverage-functions.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions badges/stslib/coverage-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions badges/stslib/coverage-statements.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions badges/stslib/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 0 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"e2e": "ng e2e",
"clean": "rimraf ./dist",
"build:prod": "ng build --prod",
"make:badge": "make-coverage-badge --report-path=./coverage/stslib/coverage-summary.json --output-path=badges/coverage.svg",
"test:ci": "npm run clean && ng test --watch=false --browsers=ChromeHeadlessCustom --codeCoverage=true && npm run make:badge",
"test:ci": "npm run clean && ng test --watch=false --browsers=ChromeHeadlessCustom --codeCoverage=true",
"build:ci": "npm run clean && npm run build:prod",
"publish:lib": "cd dist && cd stslib && npm publish"
},
Expand Down Expand Up @@ -48,11 +47,11 @@
"karma-htmlfile-reporter": "^0.3.8",
"karma-jasmine": "~3.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"make-coverage-badge": "^1.2.0",
"ng-packagr": "^9.0.0",
"npm": "^6.14.5",
"protractor": "~5.4.3",
"puppeteer": "^3.0.2",
"rimraf": "^3.0.2",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~3.8.3"
Expand Down