Split codecov and CI check (#249)

This commit is contained in:
Nova Kwok 2023-07-06 20:49:10 +08:00 committed by GitHub
parent 3699c4991f
commit 773424ca01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 15 deletions

View File

@ -1,13 +1,5 @@
name: CI check on every PR name: CI check on every PR
on: on:
push:
paths-ignore:
- '**.md'
- 'Makefile'
- 'config.json'
branches:
- 'master'
pull_request: pull_request:
branches: branches:
- master - master
@ -36,12 +28,6 @@ jobs:
- name: run test cases - name: run test cases
run: make && make test run: make && make test
- name: Codecov
uses: codecov/codecov-action@v2
with:
files: ./coverage.txt
verbose: true
image-test: image-test:
name: Check for image build and CVE name: Check for image build and CVE
runs-on: ubuntu-latest runs-on: ubuntu-latest

35
.github/workflows/codecov.yaml vendored Normal file
View File

@ -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