https://github.com/faforever/spooky-db
Forged Alliance Forever unit database remake
https://github.com/faforever/spooky-db
faforever supcom unitdb
Last synced: about 2 months ago
JSON representation
Forged Alliance Forever unit database remake
- Host: GitHub
- URL: https://github.com/faforever/spooky-db
- Owner: FAForever
- Created: 2013-11-19T09:43:13.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2025-03-31T21:21:34.000Z (2 months ago)
- Last Synced: 2025-03-31T22:26:29.612Z (2 months ago)
- Topics: faforever, supcom, unitdb
- Language: JavaScript
- Homepage:
- Size: 43.6 MB
- Stars: 12
- Watchers: 6
- Forks: 15
- Open Issues: 12
-
Metadata Files:
- Readme: .github/readme.md
Awesome Lists containing this project
README
# Debug workflows locally
## Prerequisites
- (1) [Github CLI](https://github.com/cli/cli)
Verify that Github CLI is installed and available via `gh --version`. You need to authorize yourself via `gh login`. Once authorised, verify that `gh auth token` returns a value. You'll need that token to authorize yourself through `act`.
- (2) [Act](https://github.com/nektos/act)
Verify that act is installed and available via `act --version`. There are [various ways](https://nektosact.com/installation/index.html) to install it via a tool, downloading the artifact that matches your OS and adding it to the path is sufficient however.
- (3) [Docker](https://www.docker.com/products/docker-desktop/)
Verify that docker is installed and available via `docker --version`. Act uses docker containers to containerize your workflows. You'll need to start the `Docker Desktop` application to guarantee that the docker engine is running.
## Debug a workflow
The tool `act` only works on workflows that have the `push` event. Add the `push` event to the workflow that you want to test if it is missing.
```bash
# # Non-standard image that has `pwsh` installed # Workflow to debug # Token to authorize
act -P 'ubuntu-latest=ghcr.io/catthehacker/ubuntu:pwsh-22.04' -W '.github/workflows/build.yaml' -s GITHUB_TOKEN="$(gh auth token)"# for repeated tests # do not pull (-p) the docker image each time
act -P 'ubuntu-latest=ghcr.io/catthehacker/ubuntu:pwsh-22.04' -W '.github/workflows/build.yaml' -s GITHUB_TOKEN="$(gh auth token)" -p=false
```Useful references:
- [Documentation about act](https://nektosact.com/introduction.html)
- [List of all official docker images](https://github.com/catthehacker/docker_images)