Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: compare artifacts #45

Merged
merged 2 commits into from
Sep 22, 2023
Merged
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
30 changes: 29 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,34 @@ jobs:
run: env DOCKER_TAG=bleeding-edge ./dockerenv-github.sh ./pack.sh
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: site-for-verification
path: pack.zip

compare:
needs: [build, test-bleeding-edge-java-and-npm]
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: site
path: pack-for-verification.zip
path: ./build

- name: Download test-bleeding-edge-java-and-npm artifact
uses: actions/download-artifact@v3
with:
name: site-for-verification
path: ./verification

- name: Extract build artifact
run: mkdir build/unpacked && unzip -d build/unpacked build/pack.zip

- name: Extract test-bleeding-edge-java-and-npm artifact
run: mkdir verification/unpacked && unzip -d verification/unpacked verification/pack.zip

- name: Find
run: find

- name: Compare artifacts
run: diff --exclude="*.gz" -r build/unpacked verification/unpacked
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ lazy val client = (project in file("client")).settings(
jsDependencies ++= Seq(
bootstrap / "bootstrap.min.js",
"org.webjars" % "momentjs" % "2.10.6" / "min/moment.min.js",
"org.webjars" % "moment-timezone" % "0.4.0-1" / "moment-timezone-with-data-2010-2020.js" dependsOn "min/moment.min.js",
"org.webjars" % "moment-timezone" % "0.4.0-1" / "moment-timezone-with-data.js" dependsOn "min/moment.min.js",
"org.webjars" % "jquery" % "2.1.4" / jqueryName minified "jquery/2.1.4/jquery.min.js",
ProvidedJS / "jquery.stickytableheaders.js" /*minified "jquery.stickytableheaders.min.js"*/ dependsOn jqueryName, // Cannot use minified version as it is patched,
jqPlot / "jquery.jqplot.min.js" dependsOn jqueryName,
Expand Down