From de94f6509f875ca9f41c684334774b9b851feb1b Mon Sep 17 00:00:00 2001 From: n0vad3v Date: Thu, 6 Jul 2023 20:37:31 +0800 Subject: [PATCH] Split codecov and CI check --- .github/workflows/CI.yaml | 16 +--------------- .github/workflows/codecov.yaml | 35 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/codecov.yaml diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 4c82aaae..56e58329 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -1,13 +1,5 @@ name: CI check on every PR on: - push: - paths-ignore: - - '**.md' - - 'Makefile' - - 'config.json' - branches: - - 'master' - pull_request: branches: - master @@ -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 diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml new file mode 100644 index 00000000..be556f60 --- /dev/null +++ b/.github/workflows/codecov.yaml @@ -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