Skip to content

Commit

Permalink
workflows: install skopeo only in one case
Browse files Browse the repository at this point in the history
no need to do test this for every case
  • Loading branch information
dawidd6 committed Jan 6, 2024
1 parent 8fe07bf commit 59c99c0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
repo: https://github.com/dawidd6/deber.git
ref: v1.0.0
lintian_opts: "-v"
install_skopeo: true
- package: netcat-openbsd
arch: arm64
repo: https://git.launchpad.net/ubuntu/+source/netcat-openbsd
Expand All @@ -52,18 +53,23 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Clone repo
run: git clone --depth=1 ${{matrix.repo}} -b ${{matrix.ref}} ${{matrix.package}}

- name: Remove skopeo (for testing installation)
run: sudo rm -f $(which skopeo)
if: ${{matrix.install_skopeo}}
run: sudo rm -v $(which skopeo)

- name: Test run
uses: ./
with:
cpu_architecture: ${{matrix.arch}}
source_directory: ${{matrix.package}}
artifacts_directory: artifacts
lintian_opts: ${{matrix.lintian_opts}}
lintian_run: ${{matrix.lintian_run || false }}
lintian_run: ${{matrix.lintian_run || false}}

- name: Check files
run: |
ls -lh artifacts/${{matrix.package}}*.*
Expand Down

0 comments on commit 59c99c0

Please sign in to comment.