Skip to content

Commit

Permalink
[CI] Compare artifacts from two builds
Browse files Browse the repository at this point in the history
  • Loading branch information
v6ak committed Sep 22, 2023
1 parent 90d356b commit eb51f92
Showing 1 changed file with 29 additions and 1 deletion.
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 build/unpacked verification/unpacked

0 comments on commit eb51f92

Please sign in to comment.