CI: compare artifacts #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build web | |
on: | |
push: | |
branches: | |
- feature/github-build | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
#- uses: actions/cache@v2 | |
# with: | |
# path: ~/.cache/my | |
- name: build image | |
run: docker build . | |
- name: build website | |
run: ./dockerenv-github.sh ./pack.sh | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: site | |
path: pack.zip | |
test-bleeding-edge-java-and-npm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: build image | |
run: docker build . --target bleeding-edge | |
- name: build website | |
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: ./artifacts | |
- name: Download job2 artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: site-for-verification.zip | |
path: ./artifacts | |
- name: Compare artifacts | |
run: diff ./artifacts/pack.zip ./artifacts/pack-for-verification.zip |