Skip to content

Commit

Permalink
build: updated pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
chideat committed Aug 29, 2024
1 parent 8e1f99d commit 03fc622
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/branch-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release
name: branch-pipeline

on:
push:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/dependabot-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: dependabot-pipeline

on:
pull_request:
branches:
- dependabot/*

jobs:
test:
name: Test with Coverage
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.22'

- name: Check out code
uses: actions/[email protected]

- name: Install dependencies
run: |
go mod download
- name: Run Unit tests
run: |
make test
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest

- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: goveralls -coverprofile=coverage.txt -service=github
7 changes: 5 additions & 2 deletions .github/workflows/pr-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: dev
name: pr-pipeline

on: [pull_request]
on:
pull_request:
branches-ignore:
- dependabot/*

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release
name: release-pipeline

on:
push:
Expand Down

0 comments on commit 03fc622

Please sign in to comment.