Skip to content

Commit

Permalink
Merge branch 'refactor-scrapper-gsoc' of https://github.com/dgparmar1…
Browse files Browse the repository at this point in the history
…4/leaderboard into refactor-scrapper-gsoc
  • Loading branch information
dgparmar14 committed Jun 27, 2024
2 parents 6c14a72 + a62a9d9 commit 60bf70e
Show file tree
Hide file tree
Showing 5 changed files with 3,409 additions and 2,457 deletions.
40 changes: 39 additions & 1 deletion .github/workflows/scraper-dry-run.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Scraper Dry Run
name: Scraper Dry Run & Validate Schema

on:
workflow_dispatch:
pull_request:
paths:
- scraper/**
- tests/**
- schemas/**

jobs:
test-run-github-scraper:
Expand All @@ -12,6 +15,8 @@ jobs:
permissions:
issues: read
pull-requests: read
env:
DATA_REPO: ./
steps:
- uses: actions/checkout@v4

Expand All @@ -37,6 +42,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: mkdir contributors

- name: Generate markdown files for new contributors
run: node scripts/generateNewContributors.js
env:
Expand All @@ -49,3 +56,34 @@ jobs:
path: |
data
contributors
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run Tests
run: pnpm test
Loading

0 comments on commit 60bf70e

Please sign in to comment.