Skip to content

Commit

Permalink
merged ci yamls
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Jan 22, 2024
1 parent 93795c0 commit 0c59bbc
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 89 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/build.yml

This file was deleted.

86 changes: 43 additions & 43 deletions .github/workflows/coveritup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,51 +79,51 @@ jobs:
with:
type: go-build-time

# - name: Test
# working-directory: app
# run: |
# START=$SECONDS
# go test -race -v ./... -count=1 -coverprofile=coverage.out
# echo SCORE=$(($SECONDS-START)) >> "$GITHUB_ENV"
# - uses: kevincobain2000/action-coveritup@v1
# with:
# type: unit-test-run-time
- name: Test
working-directory: app
run: |
START=$SECONDS
go test -race -v ./... -count=1 -coverprofile=coverage.out
echo SCORE=$(($SECONDS-START)) >> "$GITHUB_ENV"
- uses: kevincobain2000/action-coveritup@v1
with:
type: go-test-run-time

# - name: Coverage
# working-directory: app
# run: |
# go tool cover -html=coverage.out -o coverage.html
# gocov convert coverage.out | gocov-xml > coverage.xml
# - name: Coveritup
# run: |
# curl -sLk https://raw.githubusercontent.com/kevincobain2000/cover-totalizer/master/install.sh | sh
# echo SCORE=`./cover-totalizer coverage.xml` >> "$GITHUB_ENV"
# - uses: kevincobain2000/action-coveritup@v1
# with:
# type: coverage
- name: Coverage
working-directory: app
run: |
go tool cover -html=coverage.out -o coverage.html
gocov convert coverage.out | gocov-xml > coverage.xml
- name: Coveritup
run: |
curl -sLk https://raw.githubusercontent.com/kevincobain2000/cover-totalizer/master/install.sh | sh
echo SCORE=`./cover-totalizer coverage.xml` >> "$GITHUB_ENV"
- uses: kevincobain2000/action-coveritup@v1
with:
type: coverage

# - name: Go Binary Size
# working-directory: app
# run: |
# echo SCORE=`du -sk main | awk '{print $1}'` >> "$GITHUB_ENV"
# - uses: kevincobain2000/action-coveritup@v1
# with:
# type: go-binary-size
- name: Go Binary Size
working-directory: app
run: |
echo SCORE=`du -sk main | awk '{print $1}'` >> "$GITHUB_ENV"
- uses: kevincobain2000/action-coveritup@v1
with:
type: go-binary-size

# - name: Number of dependencies
# working-directory: app
# run: echo SCORE=`go list -m all|wc -l|awk '{$1=$1};1'` >> "$GITHUB_ENV"
# - uses: kevincobain2000/action-coveritup@v1
# with:
# type: go-mod-dependencies
- name: Number of dependencies
working-directory: app
run: echo SCORE=`go list -m all|wc -l|awk '{$1=$1};1'` >> "$GITHUB_ENV"
- uses: kevincobain2000/action-coveritup@v1
with:
type: go-mod-dependencies

# - name: Number of GO Sec issues
# working-directory: app
# run: echo SCORE=`gosec -no-fail --quiet ./...|grep Issues | tail -1 |awk '{print $3}'` >> "$GITHUB_ENV"
# - uses: kevincobain2000/action-coveritup@v1
# with:
# type: go-sec-issues
- name: Number of GO Sec issues
working-directory: app
run: echo SCORE=`gosec -no-fail --quiet ./...|grep Issues | tail -1 |awk '{print $3}'` >> "$GITHUB_ENV"
- uses: kevincobain2000/action-coveritup@v1
with:
type: go-sec-issues

# - uses: kevincobain2000/action-coveritup@v1
# with:
# pr_comment: true
- uses: kevincobain2000/action-coveritup@v1
with:
pr_comment: true

0 comments on commit 0c59bbc

Please sign in to comment.