diff --git a/.github/workflows/code_check.yml b/.github/workflows/code_check.yml index 16c7420..b79801f 100644 --- a/.github/workflows/code_check.yml +++ b/.github/workflows/code_check.yml @@ -1,11 +1,11 @@ name: Linter & Formatter Check on: push jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v7 - - name: Install modules - run: npm ci - - name: Run Biome - run: npx biome check . + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - name: Install modules + run: npm ci + - name: Run Biome + run: npx biome check . diff --git a/.github/workflows/container_build.yml b/.github/workflows/container_build.yml index 752b20a..804a218 100644 --- a/.github/workflows/container_build.yml +++ b/.github/workflows/container_build.yml @@ -1,63 +1,63 @@ name: Build Container Image Steam Update Dispatcher on: - workflow_dispatch: - schedule: - - cron: "0 5 * * 1" - push: - branches: ["main"] - pull_request: - branches: ["main"] + workflow_dispatch: + schedule: + - cron: "0 5 * * 1" + push: + branches: ["main"] + pull_request: + branches: ["main"] concurrency: - group: ${{ github.workflow }} + group: ${{ github.workflow }} env: - TITLE: Steam Update Dispatcher - GHCR_SLUG: ghcr.io/steamtracking/steam-update-dispatcher + TITLE: Steam Update Dispatcher + GHCR_SLUG: ghcr.io/steamtracking/steam-update-dispatcher jobs: - image-build: - runs-on: ubuntu-latest - permissions: - packages: write - contents: read - - steps: - - name: Checkout repository - uses: actions/checkout@v7 - - - name: Docker meta - id: meta - uses: docker/metadata-action@v6 - with: - images: | - ${{ env.GHCR_SLUG }} - labels: | - maintainer=${{ github.repository_owner }} - org.opencontainers.image.vendor=${{ github.repository_owner }} - org.opencontainers.image.title=${{ env.TITLE }} - - - name: Setup Docker buildx - uses: docker/setup-buildx-action@v4 - - # Login against a Docker registry except on PR - # https://github.com/docker/login-action - - name: Log into registry - if: github.event_name != 'pull_request' - uses: docker/login-action@v4 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - # Build and push Docker image with Buildx (don't push on PR) - # https://github.com/docker/build-push-action - - name: Build and push Docker image - id: build-and-push - uses: docker/build-push-action@v7 - with: - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ env.GHCR_SLUG }}:latest - cache-from: ${{ env.GHCR_SLUG }}:latest - labels: ${{ steps.meta.outputs.labels }} + image-build: + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + + steps: + - name: Checkout repository + uses: actions/checkout@v7 + + - name: Docker meta + id: meta + uses: docker/metadata-action@v6 + with: + images: | + ${{ env.GHCR_SLUG }} + labels: | + maintainer=${{ github.repository_owner }} + org.opencontainers.image.vendor=${{ github.repository_owner }} + org.opencontainers.image.title=${{ env.TITLE }} + + - name: Setup Docker buildx + uses: docker/setup-buildx-action@v4 + + # Login against a Docker registry except on PR + # https://github.com/docker/login-action + - name: Log into registry + if: github.event_name != 'pull_request' + uses: docker/login-action@v4 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + # Build and push Docker image with Buildx (don't push on PR) + # https://github.com/docker/build-push-action + - name: Build and push Docker image + id: build-and-push + uses: docker/build-push-action@v7 + with: + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ env.GHCR_SLUG }}:latest + cache-from: ${{ env.GHCR_SLUG }}:latest + labels: ${{ steps.meta.outputs.labels }} diff --git a/config/config.example.yaml b/config/config.example.yaml index 6a40d32..4d639fb 100644 --- a/config/config.example.yaml +++ b/config/config.example.yaml @@ -47,4 +47,4 @@ apps: - repo: "steamtracking/gametracking-deadlock" #access_token: workflow_id: update.yml - branch: master \ No newline at end of file + branch: master diff --git a/docker-compose.yml b/docker-compose.yml index d20adfd..68f8fb3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ services: - steam-watcher: - build: . - container_name: steam-update-dispatcher - volumes: - - ./config/:/usr/src/app/config/ - restart: always + steam-watcher: + build: . + container_name: steam-update-dispatcher + volumes: + - ./config/:/usr/src/app/config/ + restart: always diff --git a/package-lock.json b/package-lock.json index 8304d21..290b7ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "steam-user": "^5.0.10" }, "devDependencies": { - "@biomejs/biome": "2.5.15" + "@biomejs/biome": "2.6.5" } }, "node_modules/@bbob/parser": { @@ -26,9 +26,9 @@ "integrity": "sha512-idpUcNQ2co6T1oU/7/DG/ZRfipSSkTn9Ozw9f5vaXH7nzV3qhqZnhFVlHTzGGnRlzKlBwWOBzOdWi4Zeqg1c5A==" }, "node_modules/@biomejs/biome": { - "version": "2.5.15", - "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.5.15.tgz", - "integrity": "sha512-WZTW4slm/pdkh92K6t/3aEN++44JD1PQ7squ7RCMLI1flHGl43DVOIGXvCjHiZgBMO1V4uYxoFNtqrIA4qGuIQ==", + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.6.5.tgz", + "integrity": "sha512-n0sp74QbSVEkWXlH659TKv4oJNylwAvDeZ8K8vt/PbcF1xneuNWe57z/G0Bxfh00cufhWXF6DiStLM8+jcLUpg==", "dev": true, "license": "MIT OR Apache-2.0", "bin": { @@ -42,20 +42,56 @@ "url": "https://opencollective.com/biome" }, "optionalDependencies": { - "@biomejs/cli-darwin-arm64": "2.5.15", - "@biomejs/cli-darwin-x64": "2.5.15", - "@biomejs/cli-linux-arm64": "2.5.15", - "@biomejs/cli-linux-arm64-musl": "2.5.15", - "@biomejs/cli-linux-x64": "2.5.15", - "@biomejs/cli-linux-x64-musl": "2.5.15", - "@biomejs/cli-win32-arm64": "2.5.15", - "@biomejs/cli-win32-x64": "2.5.15" + "@biomejs/cli-android-arm64": "2.6.5", + "@biomejs/cli-android-x64": "2.6.5", + "@biomejs/cli-darwin-arm64": "2.6.5", + "@biomejs/cli-darwin-x64": "2.6.5", + "@biomejs/cli-linux-arm64": "2.6.5", + "@biomejs/cli-linux-arm64-musl": "2.6.5", + "@biomejs/cli-linux-x64": "2.6.5", + "@biomejs/cli-linux-x64-musl": "2.6.5", + "@biomejs/cli-win32-arm64": "2.6.5", + "@biomejs/cli-win32-x64": "2.6.5" + } + }, + "node_modules/@biomejs/cli-android-arm64": { + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/@biomejs/cli-android-arm64/-/cli-android-arm64-2.6.5.tgz", + "integrity": "sha512-fkLzc1WRU7wRIUNmAm7cxILb4dd6eESz/VycWvVFKVn6tXx0gFQKdUbPnwT42xys8AEvIJQpFGcK00kURwqorg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT OR Apache-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=14.21.3" + } + }, + "node_modules/@biomejs/cli-android-x64": { + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/@biomejs/cli-android-x64/-/cli-android-x64-2.6.5.tgz", + "integrity": "sha512-fkZ9dPnDAzAcaPtPCiwqtkub5C9FQK/oGCGaU9sq+DysTaq13pE9FxBIMcEZ3ydn8/FfcMdXi/DDzKDP+qyn2Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT OR Apache-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=14.21.3" } }, "node_modules/@biomejs/cli-darwin-arm64": { - "version": "2.5.15", - "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.5.15.tgz", - "integrity": "sha512-BZVzFhJ/mUvTLMYbc9x6el0o2Uv5zP7bACYyhFb6fSc1giroXm7PL0a5KqMJ9F+/BnkYRjagD/ROSDVOZ6eapg==", + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.6.5.tgz", + "integrity": "sha512-bKd0EOREgnVjeZm4s9knQ+WdPOkWS3JHB+eWGHlx+Pq66bqQA1/KybwU0O+zuyAyXiphSCBcrLruZt3YtnJoaQ==", "cpu": [ "arm64" ], @@ -70,9 +106,9 @@ } }, "node_modules/@biomejs/cli-darwin-x64": { - "version": "2.5.15", - "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.5.15.tgz", - "integrity": "sha512-V5Kw63V+fVGNFhFrizDxMbGXAzZCh8kYzJpy3GI6gTapWDg7bZK9oYC9CbVgQSEdTnupz0U5Efz8Ev+5vdBBXw==", + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.6.5.tgz", + "integrity": "sha512-UkT9BECNOXSiW6SGddjyaRACy362Sc9n3vDaTFkccL0bC2gW7JzM16i4+JKPbEaDn1Sa+oETHV8KungnI/y40Q==", "cpu": [ "x64" ], @@ -87,9 +123,9 @@ } }, "node_modules/@biomejs/cli-linux-arm64": { - "version": "2.5.15", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.5.15.tgz", - "integrity": "sha512-XaG7P7eeSLYETD3K9grfB0mQmpLQZjygdbsxekWBJAg4am79fGAtRpfRyNnTvXB2fZFNnJZG3nXm7HBat0+VUw==", + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.6.5.tgz", + "integrity": "sha512-H9cVMWBqW/lkFK9NHJdt0bpM2q7PacUDEjQoff9+m0dCV09H/jmBykfTCkbDthHf8+jCuWDJWiQFJ7bDkiGOcA==", "cpu": [ "arm64" ], @@ -107,9 +143,9 @@ } }, "node_modules/@biomejs/cli-linux-arm64-musl": { - "version": "2.5.15", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.5.15.tgz", - "integrity": "sha512-tGzZUTcJCV7tj5Adh/Gn6nR4MycqA3iohq2LEcrarAgRBkU0h0OKd2UzCRkOsOYOuUGaUJb4YmqRqyy2feGGSw==", + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.6.5.tgz", + "integrity": "sha512-kfc3AePW1a0/d/gUpcIz95nf3Ce8YY2/xL0Fk3fLqAhKsotqUi6PN6BaVWss4p6ijWbiuacZ9NQ4NiQtpjbYpw==", "cpu": [ "arm64" ], @@ -127,9 +163,9 @@ } }, "node_modules/@biomejs/cli-linux-x64": { - "version": "2.5.15", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.5.15.tgz", - "integrity": "sha512-xE4iEW/3LqlYj9GFgGrFsFSH51dEEpUbYWBfeOv0q87WkUDxK2o/HhreSb7qMJqck70RVM6Lg96hgedcAYcOkA==", + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.6.5.tgz", + "integrity": "sha512-e6/WMSN/+FhH+ZOoBevps/euxFQmv6BXqYNuTn1+ITR6O4XYFjHF5PeVSNZnjkgSYmvhcDkfepSX5lXczMijGA==", "cpu": [ "x64" ], @@ -147,9 +183,9 @@ } }, "node_modules/@biomejs/cli-linux-x64-musl": { - "version": "2.5.15", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.5.15.tgz", - "integrity": "sha512-IlxUcyxilVGPsE008x13pWdkTbU3nQpP2i9b5UrbOYj6goBkKsRX1XB7yJLcV+O1H9LBchIIm4adOaVLZBX0ZQ==", + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.6.5.tgz", + "integrity": "sha512-0mHVpLNt7/FugfZ2VPugUIEIiooWIyHGGJUqU9StxamBln9hz+maXRFIECU50jaf5/ZB93veGIViN5VKgw2AEA==", "cpu": [ "x64" ], @@ -167,9 +203,9 @@ } }, "node_modules/@biomejs/cli-win32-arm64": { - "version": "2.5.15", - "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.5.15.tgz", - "integrity": "sha512-2kPKzhNlm8C+Ru3GcO0Me2ODkCBLrVOUNuyi84RJyWDVKAA4+Kjj3jMjL938lF6BRfvltC4vB2nPY9SvN51Ovg==", + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.6.5.tgz", + "integrity": "sha512-uBbfpdR/cH5up1iRJFGAPP97xKMzrgMs685CSrY7NM+Q4Unw7chY0o3JulEvJdmU6c6hGQxwqotMq7DDH0DzxA==", "cpu": [ "arm64" ], @@ -184,9 +220,9 @@ } }, "node_modules/@biomejs/cli-win32-x64": { - "version": "2.5.15", - "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.5.15.tgz", - "integrity": "sha512-yAzh4UqEImV6Hcy0zjUqNfJAsUhoD64FBQCdTG8Md/Z2wQeVP/ZmJ3XRYAs1g8J9fjTFyl2fCtc5FB5til47+g==", + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.6.5.tgz", + "integrity": "sha512-07LaCeN9vvmbAAMOMsUjMfL5UbsCDkvVeyMJIgwNRc0xYqhizBGkjVzx05LYEwCXl2AiHcdzqVPR4IOYAsI1QQ==", "cpu": [ "x64" ], diff --git a/package.json b/package.json index a3256ea..4f6b07b 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "steam-user": "^5.0.10" }, "devDependencies": { - "@biomejs/biome": "2.5.15" + "@biomejs/biome": "2.6.5" }, "scripts": { "start": "node src/bot.mjs",