Skip to content

Commit

Permalink
Split codecov and CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
n0vad3v committed Jul 6, 2023
1 parent 3699c49 commit de94f65
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
name: CI check on every PR
on:
push:
paths-ignore:
- '**.md'
- 'Makefile'
- 'config.json'
branches:
- 'master'

pull_request:
branches:
- master
Expand Down Expand Up @@ -35,13 +27,7 @@ jobs:
- name: run test cases
run: make && make test

- name: Codecov
uses: codecov/codecov-action@v2
with:
files: ./coverage.txt
verbose: true


image-test:
name: Check for image build and CVE
runs-on: ubuntu-latest
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI check on every push
on:
push:
paths-ignore:
- '**.md'
- 'Makefile'
- 'config.json'
branches:
- 'master'

jobs:
ci:
name: CI check and codecov on every push
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.20'

- name: Setup necessary packages
run: |
sudo apt install libvips-dev -y
- name: run test cases
run: make && make test

- name: Codecov
uses: codecov/codecov-action@v2
with:
files: ./coverage.txt
verbose: true

0 comments on commit de94f65

Please sign in to comment.