From 4d617e54d3f6ac30d8ea63865a4839afa5cac66c Mon Sep 17 00:00:00 2001 From: Scott J Dickerson Date: Fri, 3 May 2024 11:50:05 -0400 Subject: [PATCH] Test ci-repo.yml changes Signed-off-by: Scott J Dickerson --- .github/workflows/ci-repo.yml | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-repo.yml b/.github/workflows/ci-repo.yml index 7a6cebaa0c..fa87f5ec8c 100644 --- a/.github/workflows/ci-repo.yml +++ b/.github/workflows/ci-repo.yml @@ -5,18 +5,31 @@ on: branches: - "main" - "release-*" + pull_request: branches: - "main" - "release-*" + schedule: + - cron: "35 5 * * *" # every day @ 5:35am UTC + + workflow_dispatch: + jobs: unit-test-lookup-image: runs-on: ubuntu-latest outputs: builder-image: ${{ steps.grepBuilder.outputs.builder }} steps: + - name: Log the event + env: + GH: ${{ toJson(github) }} + run: | + echo "$GH" | jq "." + - uses: actions/checkout@v4 + - name: Lookup builder image from the project's Dockerfile id: grepBuilder run: | @@ -54,14 +67,21 @@ jobs: - name: Test run: npm run test -- --coverage --watchAll=false + - name: install gh? + run: | + dnf -y config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo + dnf -y install gh + - name: Upload to codecov (client) + # if: ${{ github.event_name == 'pull_request' }} uses: codecov/codecov-action@v4 with: flags: client - directory: ./*/coverage + directory: ./client/coverage - - name: Upload to codecov (server) - uses: codecov/codecov-action@v4 - with: - flags: server - directory: ./*/coverage + # ** Disabled since there are no tests on server or common ** + # - name: Upload to codecov (server) + # uses: codecov/codecov-action@v4 + # with: + # flags: server + # directory: ./server/coverage