Skip to content

Commit de1274e

Browse files
committed
CI: Add a CI job that runs the post-build tests on the versions.json that is currently in S3
(cherry picked from commit 3020d7f)
1 parent ca8e02f commit de1274e

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/CI.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,28 @@ jobs:
112112
run: aws s3 cp versions.json s3://${{ env.s3_bucket }}/bin/versions.json --acl public-read --no-progress
113113
- name: Purge cache
114114
run: curl -X PURGE https://julialang-s3.julialang.org/bin/versions.json
115+
116+
test-current-s3:
117+
# We intentionally do not make this job a "required status check" on PRs.
118+
# Because if the currently deployed `versions.json` on S3 is already broken,
119+
# then this job will fail, which would block us from merging a PR with fixes.
120+
runs-on: ubuntu-latest
121+
timeout-minutes: 20
122+
strategy:
123+
fail-fast: false
124+
steps:
125+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
126+
with:
127+
persist-credentials: false
128+
- uses: julia-actions/setup-julia@4c0cb0fce8556fdb04a90347310e5db8b1f98fb9 # v2.7.0
129+
with:
130+
version: 'lts'
131+
- uses: julia-actions/cache@9a93c5fb3e9c1c20b60fc80a478cae53e38618a4 # v3.0.2
132+
- name: Install dependencies
133+
run: julia --color=yes --project -e "using Pkg; Pkg.instantiate(); Pkg.precompile()"
134+
- name: Remove an old versions.json if one happens to be lying around
135+
run: rm -fv versions.json
136+
- name: Download the current versions.json from S3
137+
run: curl -LO https://julialang-s3.julialang.org/bin/versions.json
138+
- name: Run the post-build tests on the versions.json that we downloaded from S3
139+
run: julia --project test/post_build.jl versions.json full

0 commit comments

Comments
 (0)