Compare commits

..

No commits in common. "55bdb2d2843649376726447e515f22d745dd588a" and "715a28f198ea0ec9e7c57f45907346dc7502f5e9" have entirely different histories.

3 changed files with 24 additions and 4 deletions

View File

@ -7,7 +7,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
deno: [1.x, "1.37.x", canary]
deno: [1.x, "1.31.x", canary]
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
@ -15,10 +15,8 @@ jobs:
deno-version: ${{ matrix.deno }}
- name: Check fmt
run: deno fmt --check
if: ${{ matrix.deno != '1.31.x' }}
- name: Run lint
run: deno lint
if: ${{ matrix.deno != '1.31.x' }}
- name: All entries
uses: tj-actions/glob@v16
id: entries

22
.github/workflows/constant-check.yaml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Constant Check
on:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
- cron: "0 0 * * *"
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: 1.x
- name: Check constant updates
run: deno run -A ./scripts/update-constant.ts
- name: Check if workspace is clean
run: git diff --exit-code

View File

@ -40,7 +40,7 @@ import {
urlSimplify,
} from "../utils.ts";
import { Env } from "../env.ts";
import GEAR_MAP from "../assets/gear-map.json" with { type: "json" };
import GEAR_MAP from "../assets/gear-map.json" assert { type: "json" };
const COOP_POINT_MAP: Record<number, number | undefined> = {
0: -20,