Skip to content

Commit

Permalink
Merge pull request #24 from quellen-sol/ci
Browse files Browse the repository at this point in the history
CI for PRs
  • Loading branch information
quellen-sol authored Oct 7, 2024
2 parents f3e6989 + 332ea23 commit fa15535
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: PR Code Checks

on:
pull_request:
branches:
- master

jobs:
pr-checks:
name: PR Code Checks
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: "recursive"

- name: Cargo test
run: cargo test -p ArchipelaPal

# Do not deny on clippy warnings, for now.
# Manually review clippy's findings
- name: Clippy
run: cargo clippy -p ArchipelaPal -- -W clippy::all

- name: Format Check
run: cargo fmt -p ArchipelaPal -- --check
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: 'recursive'

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ArchipelaPal is a bot that plays its own world in an Archipelago Randomizer, whi

ArchipelaPal's game world and gameplay are laid out as follows:

- ArchipelaPal spawns its `Hub` region in the "center" of its own world. This area has a configurable number of Sphere 0 chests it will check first (`num_sphere_0_chests`).
- ArchipelaPal spawns at its `Hub` region in the "center" of its own world. This area has a configurable number of Sphere 0 chests it will check first (`num_sphere_0_chests`).
- There are a configurable number of `Regions` locked behind `Keys` in the world. These regions must have a minimum of `min_chests_per_region` chests and a maximum of `max_chests_per_region`. `Regions` are simply numbered and correspond with one `Key` (i.e., `Region 1` is locked by `Key 1` which must be found). This is to simulate progression items similar to other games, which unlock a certain number of checks each.
- ArchipelaPal will check these regions in a random order, in a random interval between `min_time_between_checks` and `max_time_between_checks` (in seconds), but cannot check another region until it has the required key.
- ArchipelaPal will check all available checks in a region before moving on to the next region. However, if a `progression` or `useful` item is hinted to be in ArchipelaPal's world, it will check that location as soon as it is logically available.
Expand Down

0 comments on commit fa15535

Please sign in to comment.