Skip to content

Commit

Permalink
test: add tests for Docker FS
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoaldamav committed Oct 31, 2023
1 parent 707528b commit e121017
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: E2E Docker

on:
push:
branches:
- main
workflow_dispatch:

jobs:
docker-e2e:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
fs: ['overlayfs']

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup QEMU
uses: docker/setup-qemu-action@v3

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
run: |
docker buildx build . -t docker-e2e
- name: Run
run: |
docker run --rm -it --privileged --name docker-e2e
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM rust:1.73

WORKDIR /usr/src/myapp
COPY . .

CMD ["cargo", "test", "--release"]

0 comments on commit e121017

Please sign in to comment.