Skip to content

ci: add autotest job #24

ci: add autotest job

ci: add autotest job #24

Workflow file for this run

name: Docker Image
on:
push:
branches: ["main"]
jobs:
build-image-builder:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Build the yanetplatform/builder
run: |
cd docker
build-unittest:
needs: build-image-builder
runs-on: ubuntu-latest
container:
image: yanetplatform/builder
steps:
- uses: actions/checkout@v3
- run: |
meson setup -Dtarget=unittest build_unittest
meson compile -C build_unittest
- name: bug https://github.com/actions/upload-artifact/issues/38
run: tar -cvf build_unittest.tar build_unittest
- uses: actions/upload-artifact@v3
with:
name: build_unittest
path: build_unittest.tar
build-autotest:
needs: build-image-builder
runs-on: ubuntu-latest
container:
image: yanetplatform/builder
steps:
- uses: actions/checkout@v3
- run: |
meson setup --prefix=/usr -Dtarget=autotest build_autotest
meson compile -C build_autotest
- name: bug https://github.com/actions/upload-artifact/issues/38
run: tar -cvf build_autotest.tar build_autotest
- uses: actions/upload-artifact@v3
with:
name: build_autotest
path: build_autotest.tar
build:
needs: build-image-builder
runs-on: ubuntu-latest
container:
image: yanetplatform/builder
steps:
- uses: actions/checkout@v3
- run: |
meson setup --prefix=/target build
meson compile -C build
- run: meson install -C build
unittest:
needs: build-unittest
runs-on: ubuntu-latest
container:
image: yanetplatform/builder
steps:
- uses: actions/download-artifact@v3
with:
name: build_unittest
- name: bug https://github.com/actions/upload-artifact/issues/38
run: tar -xf build_unittest.tar
- run: meson test --no-rebuild -C build_unittest
autotest:
needs: build-autotest
runs-on: ubuntu-latest
container:
image: yanetplatform/builder
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: build_autotest
- name: bug https://github.com/actions/upload-artifact/issues/38
run: tar -xf build_autotest.tar
- run: meson install --no-rebuild -C build_autotest
- run: yanet-autotest-run.py autotest/units/001_one_port