Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
shore committed May 7, 2024
1 parent f1b3ecd commit 7472326
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/self-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ jobs:
- { reproducible: nope, want: success }
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: select OS value
run: case "${{ runner.os }}" in macOS) echo "SELECTED_OS=darwin" >> "$GITHUB_ENV" ;; Linux) echo "SELECTED_OS=linux" >> "$GITHUB_ENV" ;; esac
- uses: ./self-test
with:
product_name: "example-app-${{ github.job }}-${{ matrix.reproducible }}"
os: ${{ runner.os }}
os: ${{ env.SELECTED_OS }}
reproducible: ${{ matrix.reproducible }}
assert: ${{ matrix.want }}
when: "the binary files are identical and there are no other files in the zip"
Expand All @@ -56,10 +58,11 @@ jobs:
- { reproducible: nope, want: success }
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
run: case "${{ runner.os }}" in macOS) echo "SELECTED_OS=darwin" >> "$GITHUB_ENV" ;; Linux) echo "SELECTED_OS=linux" >> "$GITHUB_ENV" ;; esac
- uses: ./self-test
with:
product_name: "example-app-${{ github.job }}-${{ matrix.reproducible }}"
os: ${{ runner.os }}
os: ${{ env.SELECTED_OS }}
reproducible: ${{ matrix.reproducible }}
assert: ${{ matrix.want }}
when: "the binary files are identical and so are two other files in the zip"
Expand Down Expand Up @@ -114,10 +117,11 @@ jobs:
- { reproducible: nope, want: success }
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
run: case "${{ runner.os }}" in macOS) echo "SELECTED_OS=darwin" >> "$GITHUB_ENV" ;; Linux) echo "SELECTED_OS=linux" >> "$GITHUB_ENV" ;; esac
- uses: ./self-test
with:
product_name: "example-app-${{ github.job }}-${{ matrix.reproducible }}"
os: ${{ runner.os }}
os: ${{ env.SELECTED_OS }}
reproducible: ${{ matrix.reproducible }}
assert: ${{ matrix.want }}
when: "the binary files reproduce but the zip files do not"
Expand All @@ -139,10 +143,11 @@ jobs:
- { reproducible: nope, want: success }
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
run: case "${{ runner.os }}" in macOS) echo "SELECTED_OS=darwin" >> "$GITHUB_ENV" ;; Linux) echo "SELECTED_OS=linux" >> "$GITHUB_ENV" ;; esac
- uses: ./self-test
with:
product_name: "example-app-${{ github.job }}-${{ matrix.reproducible }}"
os: ${{ runner.os }}
os: ${{ env.SELECTED_OS }}
reproducible: ${{ matrix.reproducible }}
assert: ${{ matrix.want }}
when: "neither the binary file not the zip file reproduce"
Expand All @@ -163,10 +168,11 @@ jobs:
- { reproducible: nope, want: failure }
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
run: case "${{ runner.os }}" in macOS) echo "SELECTED_OS=darwin" >> "$GITHUB_ENV" ;; Linux) echo "SELECTED_OS=linux" >> "$GITHUB_ENV" ;; esac
- uses: ./self-test
with:
product_name: "example-app-${{ github.job }}-${{ matrix.reproducible }}"
os: ${{ runner.os }}
os: ${{ env.SELECTED_OS }}
reproducible: ${{ matrix.reproducible }}
assert: ${{ matrix.want }}
when: "the binary file is not written to the correct path"
Expand Down

0 comments on commit 7472326

Please sign in to comment.