-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix container id discovery on environments like GitHub Actions (#4)
And also creates a workflow for testing changes.
- Loading branch information
Showing
4 changed files
with
116 additions
and
46 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
docker-version: ["18.09", "19.03", "20.10", "23", "24", latest] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Show host Docker information | ||
run: | | ||
docker version | ||
docker info | ||
- name: Run tests with Docker ${{ matrix.docker-version }} | ||
run: | | ||
if [[ '${{ runner.debug }}' == 1 ]]; then | ||
export DEBUG=true | ||
export DOND_SHIM_DEBUG=true | ||
fi | ||
scripts/test.sh '${{ matrix.docker-version }}' | ||
result: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: | | ||
echo "All tests passed!" |
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
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
File renamed without changes.