Skip to content

Commit

Permalink
Add alpine tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juadde committed Apr 30, 2024
1 parent 52a515a commit b20fba2
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,46 @@ jobs:
- name: Run diff
run: diff discrete.output test/discrete.output

test_a429_alpine:
runs-on: ubuntu-latest
needs: package_alpine_plugin
steps:
- name: Get test files
uses: actions/checkout@v4
with:
sparse-checkout: |
test
pcapng_files
sparse-checkout-cone-mode: false
- name: Download plugin
uses: actions/download-artifact@v4
with:
name: Wireshark-plugin-alpine
- name: Run TShark on ARINC429 traffic
run: docker run -v .:/test alpine sh -c "apk add tshark lua5.2-bitop && unzip /test/Wireshark_plugin.zip -d /usr && tshark -e A429.LABEL -e A429.WORD -e A429.SDI -e A429.SSM -e A429.DATA -e A429.PARITY -E header=y -T fields -r /test/arinc429_broadcast.pcapng | tee /test/a429_broadcast.output"
- name: Run diff
run: diff a429_broadcast.output test/a429_broadcast.output

test_discrete_alpine:
runs-on: ubuntu-latest
needs: package_alpine_plugin
steps:
- name: Get test files
uses: actions/checkout@v4
with:
sparse-checkout: |
test
pcapng_files
sparse-checkout-cone-mode: false
- name: Download plugin
uses: actions/download-artifact@v4
with:
name: Wireshark-plugin-alpine
- name: Run TShark on ARINC429 traffic
run: docker run -v .:/test alpine sh -c "apk add tshark && unzip /test/Wireshark_plugin.zip -d /usr && tshark -e DISCRETE.VALUE -E header=y -T fields -r /test/pcapng_files/discrete.pcapng | tee /test/discrete.output"
- name: Run diff
run: diff discrete.output test/discrete.output

test_a429_windows:
runs-on: windows-latest
needs: package_windows_plugin
Expand Down Expand Up @@ -324,7 +364,7 @@ jobs:

release_alpine_plugin:
runs-on: ubuntu-latest
needs: [package_alpine_plugin]
needs: [test_a429_alpine, test_discrete_alpine]
permissions:
contents: write
if: ${{ startsWith(github.ref, 'refs/tags/') }}
Expand Down

0 comments on commit b20fba2

Please sign in to comment.