mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
Split codecov and CI check (#249)
This commit is contained in:
parent
3699c4991f
commit
773424ca01
14
.github/workflows/CI.yaml
vendored
14
.github/workflows/CI.yaml
vendored
@ -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
35
.github/workflows/codecov.yaml
vendored
Normal 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
|
Loading…
x
Reference in New Issue
Block a user