Skip to content

Commit

Permalink
Test ci-repo.yml changes
Browse files Browse the repository at this point in the history
Signed-off-by: Scott J Dickerson <[email protected]>
  • Loading branch information
sjd78 committed May 3, 2024
1 parent 70dfeae commit 4d617e5
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/ci-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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

0 comments on commit 4d617e5

Please sign in to comment.