Compare commits

...

5 Commits

Author SHA1 Message Date
Rosalina 55bdb2d284
Merge remote-tracking branch 'upstream/main' into splashcat-exporter-v2 2024-01-16 08:47:05 -05:00
spacemeowx2 02a01188c6 ci: update oldest deno version 2024-01-16 16:05:39 +08:00
spacemeowx2 54a7ff55fa ci: skip fmt and lint for old version 2024-01-16 16:04:28 +08:00
spacemeowx2 ed5d286ac7 fix: lint 2024-01-16 15:54:36 +08:00
spacemeowx2 f33c03c691 ci: remove constant-check 2024-01-16 15:51:26 +08:00
3 changed files with 4 additions and 24 deletions

View File

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

View File

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