blob: 69a0ec8e02ec7b70230e8c40e7ff733c6f64adef [file] [log] [blame]
Tadas Sutkaitis4ace4182023-02-27 04:31:52 +02001# Copyright (c) 2023 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15name: containerd
16
17on:
18 pull_request:
19 paths:
20 - molecule/containerd/**
21 - roles/defaults/**
22 - roles/runc/**
23 - roles/binary_download/**
24 - roles/containerd/**
25 - roles/crictl/**
26 push:
27 branches:
28 - main
29 paths:
30 - molecule/containerd/**
31 - roles/defaults/**
32 - roles/runc/**
33 - roles/binary_download/**
34 - roles/containerd/**
35 - roles/crictl/**
36
37jobs:
38 test:
39 runs-on: ubuntu-latest
40 strategy:
41 matrix:
42 distro:
43 - debian10
44 - debian11
45 - fedora36
46 - fedora37
47 - rockylinux8
48 - rockylinux9
49 - ubuntu2004
50 - ubuntu2204
51 steps:
52 - name: Checkout project
53 uses: actions/checkout@v3
54
55 - name: Install Poetry
56 run: pipx install poetry
57
58 - name: Setup Python
59 uses: actions/setup-python@v4
60 with:
61 cache: poetry
62
63 - name: Install dependencies
64 run: poetry install --no-interaction --with dev
65
66 - name: Run Molecule
67 run: poetry run molecule test -s containerd
68 env:
69 MOLECULE_DISTRO: ${{ matrix.distro }}