Skip to content

fixup! ci(github): DEBUG Disk space usage #578

fixup! ci(github): DEBUG Disk space usage

fixup! ci(github): DEBUG Disk space usage #578

Workflow file for this run

# SPDX-FileCopyrightText: 2023 Ross Patterson <me@rpatterson.net>
#
# SPDX-License-Identifier: MIT
name: "Build and Test"
# TEMPLATE: If the project uses GitHub Actions, then add the following secrets to the
# project:
#
# - `CODECOV_TOKEN`:
# Add your project to https://app.codecov.io/gl and use the generated token
#
# - `DOCKER_PASS`:
# A Docker Hub Personal Access Token
#
# - `GPG_PASSPHRASE`:
# See the comments towards the bottom of the `./Makefile`
#
# - `GPG_SIGNING_PRIVATE_KEY`:
# See the comments towards the bottom of the `./Makefile`
#
# - `PROJECT_GITHUB_PAT`:
# A GitHub "Classic" Personal Access Token with scopes: `repo`, `workflow`,
# `packages`, and `project`
#
# - `PYPI_PASSWORD`:
# A PyPI API token
#
# - `TEST_PYPI_PASSWORD`:
# A PyPI API token
#
# - Add the project logo to the GitHub Social Preview:
# https://github.com/rpatterson/project-structure/settings
#
# Add them through the web UI or use the GitHub command-line tool:
# https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository
#
# You can also add the `ACTIONS_STEP_DEBUG` and `DEBUG` Actions variables and set them
# to `true` to increase debugging output.
env:
PUID: "1001"
PGID: "1001"
# Project specific values:
PROJECT_NAMESPACE: "rpatterson"
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
GPG_SIGNING_PRIVATE_KEY: "${{ secrets.GPG_SIGNING_PRIVATE_KEY }}"
DOCKER_PASS: "${{ secrets.DOCKER_PASS }}"
# Enable the GitHub command-line:
PROJECT_GITHUB_PAT: "${{ secrets.PROJECT_GITHUB_PAT }}"
# Tell the `./Makefile` about GitHub specific environment details:
CI_IS_FORK: >-
${{
(
(
(github.repository_owner != '${PROJECT_NAMESPACE}')
|| (github.event.pull_request.head.repo.owner.login != '${PROJECT_NAMESPACE}')
) && 'true'
) || 'false'
}}
DEBUG: "${{ vars.DEBUG }}"
on:
# Run only on branches, not tags:
# https://github.com/orgs/community/discussions/25615#discussioncomment-3397691
push:
branches:
- "**"
tags:
- "!**"
# Also run for open pull requests, including when pushed to:
pull_request: {}
jobs:
build-test-default:
runs-on: "ubuntu-latest"
permissions:
packages: "write"
checks: "write"
strategy:
matrix:
DOCKER_OSES:
- "debian"
DOCKER_LANGUAGES:
- "py311"
env:
DOCKER_OSES: "${{ matrix.DOCKER_OSES }}"
DOCKER_LANGUAGES: "${{ matrix.DOCKER_LANGUAGES }}"
steps:
- name: "DEBUG: Disk space usage"
run: >-
mkdir -pv './var/log/' &&
du -xh / | sort -rh | tee './var/log/du-root.log' | head -n 100
- name: "DEBUG: Upload disk space debugging"
uses: "actions/upload-artifact@master"
with:
name: "debug-disk-space"
path: |
./var/log/*