Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Kc committed Jul 26, 2023
1 parent cbcbcf3 commit d21fe57
Show file tree
Hide file tree
Showing 22 changed files with 15,849 additions and 16 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Generate badges on custom branch
name: Generate badges

on:
push:
branches:
- main

jobs:
generate-badges-on-custom-branch:
generate-badges:
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -26,20 +26,10 @@ jobs:
- name: Installing dependencies
run: yarn install

- name: Delete remote badges branch
run: git push origin --delete badges

- name: Create badges branch
run: git checkout -b badges

- name: Tests
run: yarn test-ci
run: yarn test:badges

- name: Generating coverage badges
uses: ./
with:
branches: '*'
target-branch: badges

- name: Push badges branch
run: git push origin badges
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules
yarn-error.log
dist
coverage
dist
1 change: 1 addition & 0 deletions coverage/badge-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 coverage/badge-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 coverage/badge-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 coverage/badge-statements.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d21fe57

Please sign in to comment.