Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/examples-fresh-clone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ name: Examples from a fresh clone
# from the repository root with no settings. A fresh clone holds only a link
# for each free data file. On Ubuntu the example downloads its file, which
# tests the download, and the job keeps the file in the cache. The other
# systems take it from there, so each file is downloaded once a run.
# systems take it from there, so each file is downloaded once a run. The
# Ubuntu job also builds every example module, with its tests compiled,
# against the published packages.

on:
pull_request:
Expand Down Expand Up @@ -73,6 +75,17 @@ jobs:
key: fresh-clone-${{ matrix.product }}-${{ hashFiles(format('{0}.link', matrix.file)) }}
enableCrossOsArchive: true

# The console build above compiles the console examples and their
# tests. This builds every example module, the web examples too, with
# its tests compiled, against the published packages, so a test that
# uses a class the published packages lack fails here. It comes after
# the cache is saved, so the other systems still get the data file. The
# tests are not run here, as the pull request build runs them.
- name: Build every example and its tests against the published packages
working-directory: examples/${{ matrix.product }}
shell: pwsh
run: mvn -B --no-transfer-progress package -DskipTests

other-systems:
name: ${{ matrix.product }} on ${{ matrix.os }}
needs: download
Expand Down
5 changes: 4 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,10 @@ example. The IP Intelligence cloud examples read their key from
product's `GettingStartedOnPrem` jar from the repository root with no
settings. On Ubuntu the free data file is downloaded, as from a fresh
clone, and the Windows and macOS jobs take that file from the run's cache,
so each file is downloaded once a run. It runs on each push to `main` and
so each file is downloaded once a run. The Ubuntu job then builds every
example module, the web examples too, with its tests compiled against
the published packages, so a test that uses a class only this
repository has fails there. It runs on each push to `main` and
`rc`, daily, and on a pull request that changes the examples.

## Environment variable names
Expand Down
Loading