Skip to content

Commit

Permalink
setup ci
Browse files Browse the repository at this point in the history
  • Loading branch information
aesthetic0001 committed Feb 1, 2024
1 parent f23d9ae commit 80de39c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 46 deletions.
7 changes: 0 additions & 7 deletions .github/dependabot.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:
build:
Expand All @@ -16,10 +16,10 @@ jobs:
node-version: [18.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
- run: npm test
32 changes: 0 additions & 32 deletions .github/workflows/npm-publish.yml

This file was deleted.

11 changes: 9 additions & 2 deletions lib/movements.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,15 @@ class Movements {
toBreak.push(blockD.position)
}
cost += this.exclusionPlace(blockD)
toPlace.push({ x: node.x, y: node.y - 1, z: node.z, dx: dir.x, dy: 0, dz: dir.z, returnPos: new Vec3(node.x, node.y, node.z) })
toPlace.push({
x: node.x,
y: node.y - 1,
z: node.z,
dx: dir.x,
dy: 0,
dz: dir.z,
returnPos: new Vec3(node.x, node.y, node.z)
})
cost += this.placeCost // additional cost for placing a block
}

Expand Down Expand Up @@ -646,7 +654,6 @@ class Movements {
// |
// dy


// modifications to be made:
// prefer nodes which continue the current direction
getNeighbors (node, currentXDirection) {
Expand Down

0 comments on commit 80de39c

Please sign in to comment.