mirror of
https://github.com/barkeser2002/minecraft-data.git
synced 2026-11-24 06:26:15 +03:00
- Update GitHub Actions to use pinned versions (@v4) - Add comprehensive Jest test suite for helper bot - Test coverage for version handling, GitHub API integration, error scenarios - Mock all external dependencies for reliable testing
27 lines
674 B
YAML
27 lines
674 B
YAML
name: Update Helper
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 */2 * * *"
|
|
|
|
jobs:
|
|
helper:
|
|
name: update-checker
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22.x
|
|
- name: Install Github Actions toolkit
|
|
run: npm i
|
|
working-directory: .github/helper-bot
|
|
# The env vars contain the relevant trigger information, so we don't need to pass it
|
|
- name: Runs helper
|
|
run: node index.js
|
|
working-directory: .github/helper-bot
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.PAT_PASSWORD }}
|