mirror of
https://github.com/addnab/docker-run-action.git
synced 2024-12-27 12:21:03 +08:00
27 lines
627 B
YAML
27 lines
627 B
YAML
name: Docker Run Action Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
smoke-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: ./
|
|
id: run-docker
|
|
with:
|
|
image: docker:20.10.3
|
|
run: |
|
|
echo "::set-output name=docker-version::`echo $DOCKER_VERSION`"
|
|
- uses: actions/github-script@v3
|
|
with:
|
|
script: |
|
|
const dockerVersion = '${{ steps.run-docker.outputs.docker-version }}';
|
|
if (dockerVersion !== '20.10.4') {
|
|
core.setFailed(`Smoke Test Failed`);
|
|
}
|