From ef46dc398fe9ccebddb6e5aebe4310ec0ca10b6b Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 17 Jan 2023 12:07:30 +0100 Subject: [PATCH] gha workflows Signed-off-by: CrazyMax --- .github/workflows/test.yml | 30 +++++++++++++ .github/workflows/virtual-env.yml | 70 +++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 .github/workflows/test.yml create mode 100644 .github/workflows/virtual-env.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..9833f3d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: test + +on: + push: + branches: + - 'main' + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Validate + uses: docker/bake-action@v2 + with: + targets: validate + - + name: Test + uses: docker/bake-action@v2 + with: + targets: test + - + name: Upload coverage + uses: codecov/codecov-action@v3 + with: + file: ./coverage/clover.xml diff --git a/.github/workflows/virtual-env.yml b/.github/workflows/virtual-env.yml new file mode 100644 index 0000000..7d23fd4 --- /dev/null +++ b/.github/workflows/virtual-env.yml @@ -0,0 +1,70 @@ +name: virtual-env + +on: + workflow_dispatch: + schedule: + - cron: '0 10 * * *' + push: + branches: + - 'main' + paths: + - '.github/workflows/virtual-env.yml' + pull_request: + paths: + - '.github/workflows/virtual-env.yml' + +jobs: + os: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - ubuntu-22.04 + - ubuntu-20.04 + - ubuntu-18.04 + steps: + - + name: File system + run: df -ah + - + name: Mounts + run: mount + - + name: Node info + run: node -p process + - + name: NPM version + run: npm version + - + name: List install packages + run: apt list --installed + - + name: Docker daemon conf + run: | + cat /etc/docker/daemon.json + - + name: Docker info + run: docker info + - + name: Docker version + run: docker version + - + name: Cgroups + run: | + sudo apt-get install -y cgroup-tools + lscgroup + - + name: buildx version + run: docker buildx version + - + name: containerd version + run: containerd --version + - + name: Docker images + run: docker image ls + - + name: Dump context + if: always() + uses: crazy-max/ghaction-dump-context@v1