diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 357058ee6..27a128005 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,7 +7,6 @@ on: - release/** pull_request: branches: - - main - release/** defaults: @@ -25,6 +24,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Set up Go uses: actions/setup-go@v3 @@ -35,9 +36,7 @@ jobs: run: make unit-ci - name: Report coverage - run: bash <(curl -s https://codecov.io/bash) - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v3.1.2 controller-image: runs-on: ubuntu-latest diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml new file mode 100644 index 000000000..c7272157b --- /dev/null +++ b/.github/workflows/unit-test.yaml @@ -0,0 +1,19 @@ +name: Test + +on: + pull_request: + branches: + - main + +jobs: + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Run tests + uses: ./.github/actions/run-tests + - name: Report coverage + uses: codecov/codecov-action@v3.1.2 \ No newline at end of file