Debian Codegraph @

ansible_collections/community/docker/.github/workflows/nox.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 name: nox
7 'on':
8 push:
9 branches:
10 - main
11 - stable-*
12 pull_request:
13 # Run CI once per day (at 09:00 UTC)
14 schedule:
15 - cron: '0 9 * * *'
16 workflow_dispatch:
17
18 jobs:
19 nox:
20 uses: ansible-community/antsibull-nox/.github/workflows/reusable-nox-run.yml@main
21 with:
22 session-name: Run extra sanity tests
23 change-detection-in-prs: true
24
25 ansible-test:
26 uses: ansible-community/antsibull-nox/.github/workflows/reusable-nox-matrix.yml@main
27 with:
28 change-detection-in-prs: true
29 upload-codecov: true
30 upload-codecov-pr: false
31 upload-codecov-push: false
32 upload-codecov-schedule: true
33 max-ansible-core: "2.17"
34 # For some reason GitHub decided to bump Docker on the ubuntu-24.04 image,
35 # which is not compatible with podman and various other things.
36 pre-test-cmd-integration: |-
37 # See https://docs.docker.com/engine/install/ubuntu/.
38
39 # Add Docker's official GPG key:
40 sudo apt update
41 sudo apt install ca-certificates curl
42 sudo install -m 0755 -d /etc/apt/keyrings
43 sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
44 sudo chmod a+r /etc/apt/keyrings/docker.asc
45
46 # Add the repository to Apt sources:
47 sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
48 Types: deb
49 URIs: https://download.docker.com/linux/ubuntu
50 Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
51 Components: stable
52 Signed-By: /etc/apt/keyrings/docker.asc
53 EOF
54
55 sudo apt update
56 sudo apt-get install -y --allow-downgrades docker-ce-cli=5:28.0.4-1~ubuntu.24.04~noble docker-ce=5:28.0.4-1~ubuntu.24.04~noble
57 secrets:
58 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}