mirror of
https://github.com/upa/mscp.git
synced 2026-02-04 03:24:58 +08:00
add test.yml to test mscp inside docker on ubuntu
This commit is contained in:
22
.github/workflows/test.yml
vendored
Normal file
22
.github/workflows/test.yml
vendored
Normal 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"
|
||||
|
||||
Reference in New Issue
Block a user