ci: Add game ID tests

This commit is contained in:
Douile 2024-01-10 20:33:59 +00:00
parent 66d5ca9e25
commit 5edd10db2e
No known key found for this signature in database
GPG Key ID: E048586A5FF6585C
1 changed files with 29 additions and 0 deletions

29
.github/workflows/id-tests.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: ID tests
on:
push:
paths:
- "lib/games.js"
- ".github/workflows/id-tests.yml" # This action
pull_request:
paths:
- "lib/games.js"
- ".github/workflows/id-tests.yml" # This action
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- uses: Swatinem/rust-cache@v2
# TODO: Change to official repo once merged
- run: cargo install --git https://github.com/Douile/rust-gamedig.git --branch feat/id-test-cli gamedig-id-tests
- name: Run ID tests
run: node tools/run-id-tests.js