Skip to content

Files

Latest commit

 Cannot retrieve latest commit at this time.

History

History
38 lines (29 loc) · 1.67 KB

github_actions_tests.md

File metadata and controls

38 lines (29 loc) · 1.67 KB

Run GitHub Actions Tests

This document shows the procedure for GitHub Actions debug and test in local docker.

Pre-requirement

Docker in Docker

A docker container must be able to mount /var/run/docker.sock to run GitHub Actions inside docker. So only tested in Linux environment.

GitHub personal access token

A GitHub personal access token may be required to run workflows. Which must have Public Repositories (read-only) access.

See: Managing your personal access tokens - GitHub Docs

Run GitHub Actions

You can run GitHub Actions using the following commands:

  • Fast (set_versions) test
    • bash tools/github_actions_tests/run_github_actions_tests.sh --job set_versions
  • List jobs
    • bash tools/github_actions_tests/run_github_actions_tests.sh --list
  • Lint
    • bash tools/github_actions_tests/run_github_actions_tests.sh --workflows .github/workflows/lint.yml push
  • Latest bulid test
    • For fake-bpy-module: bash tools/github_actions_tests/run_github_actions_tests.sh --workflows .github/workflows/fake-bpy-module-latest-build.yml --job build_modules
    • For fake-bge-module: bash tools/github_actions_tests/run_github_actions_tests.sh --workflows .github/workflows/fake-bge-module-latest-build.yml --job build_modules
  • All push test
    • bash tools/github_actions_tests/run_github_actions_tests.sh push
  • Show help