Skip to content

Commit

Permalink
Test using itself
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Aug 29, 2024
1 parent 2366566 commit 448e693
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,16 @@ jobs:
strategy:
matrix:
engine: [ 'docker', 'podman' ]
test-kind: [ 'unit', 'integration' ]
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@just
- name: Start podman daemon
if: matrix.engine == 'podman'
run: |
set -ex
systemctl --user start podman.service
just get-socket
- name: Set preference to use ${{ matrix.engine }}
run: just prefer ${{ matrix.engine }}
- name: Build development image
run: just build
- name: Pull other images
run: just pull
- name: Start ancillary services
run: just start-ancillary
- name: Run unit tests
run: just test-unit
- name: Run integration tests
run: just test-integration
run: systemctl --user start podman.service
- name: Run ${{ matrix.test-kind }} tests on ${{ matrix.engine }}
uses: ./
with:
engine: ${{ matrix.engine }}
command: test-${{ matrix.test-kind }}

build:
needs: [ test ]
Expand Down

0 comments on commit 448e693

Please sign in to comment.