add test.yml to test mscp inside docker on ubuntu

This commit is contained in:
Ryo Nakamura
2022-11-06 14:27:44 +09:00
parent 867e7f0540
commit 2efffc21f4

22
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: test on ubuntu
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build test container
run: docker build --rm -t mscp-test -f docker/Dockerfile-test .
- name: Run test
run: docker run --init --rm mscp-test bash -c "/usr/sbin/sshd; cd /mscp/build; ctest --verbose"