Skip to content

Commit

Permalink
🌱 Add nightly runs to the ci-repo.yml workflow (#1899)
Browse files Browse the repository at this point in the history
To better support ongoing green builds, add a nightly run on main from
the repo level CI. The nightly run is embedded into the existing
`ci-repo.yml` so the PR checks, merge/push to main, and nightly runs all
use the same workflow.

This should also allow the CI repo's main README.md to have a full set
of CI badges.

Note: The codecov actions will only be run when the workflow is run for
a PR.

Signed-off-by: Scott J Dickerson <[email protected]>
  • Loading branch information
sjd78 authored May 8, 2024
1 parent b738458 commit 802f366
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,25 @@ 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:
- uses: actions/checkout@v4

- name: Lookup builder image from the project's Dockerfile
id: grepBuilder
run: |
Expand Down Expand Up @@ -55,13 +62,15 @@ jobs:
run: npm run test -- --coverage --watchAll=false

- name: Upload to codecov (client)
if: ${{ github.event.pull_request }}
uses: codecov/codecov-action@v4
with:
flags: client
directory: ./*/coverage
directory: ./client/coverage

- name: Upload to codecov (server)
if: ${{ github.event.pull_request }}
uses: codecov/codecov-action@v4
with:
flags: server
directory: ./*/coverage
directory: ./server/coverage

0 comments on commit 802f366

Please sign in to comment.