/ .github / workflows / check.yml
check.yml
 1  name: Run svelte-check
 2  on:
 3    workflow_dispatch:
 4    pull_request:
 5  
 6  jobs:
 7    svelte-check:
 8      runs-on: ubuntu-latest
 9      steps:
10        - name: Check out code
11          uses: actions/checkout@v2
12  
13        - uses: actions/setup-node@v3
14          with:
15            node-version: 24
16            cache: 'npm'
17  
18        - name: Cache dependencies
19          uses: actions/cache@v4
20          with:
21            path: ~/.npm
22            key: npm-${{ hashFiles('package-lock.json') }}
23            restore-keys: npm-
24  
25        - name: Populate .env file
26          run: |
27            cat > .env << EOF
28            PUBLIC_NETWORK=5
29            PUBLIC_GQL_URL=https://gql-api.drips.network/
30            PUBLIC_INTERNAL_GQL_URL=https://foo.bar
31            ECOSYSTEM_API_URL=https://ecosystems-api-mainnet.up.railway.app/
32            ECOSYSTEM_API_ACCESS_TOKEN=123
33            PUBLIC_ORCID_API_URL=https://pub.sandbox.orcid.org
34            PUBLIC_TURNSTILE_SITE_KEY=1x00000000000000000000AA
35            EOF
36  
37        - name: Install dependencies
38          run: npm ci
39  
40        - name: Build GQL types
41          run: PUBLIC_GQL_URL=https://gql-api.drips.network/ npm run gql:build
42  
43        - name: Run svelte-check
44          run: npm run check