-
Notifications
You must be signed in to change notification settings - Fork 9
74 lines (59 loc) · 1.83 KB
/
crawler-checks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: crawler-checks
on:
# push:
# paths:
# - crawler/**
pull_request:
paths:
- crawler/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
crawler-checks-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 22.12.0
uses: actions/setup-node@v3
with:
node-version: 22.12.0
# Install + Cache Crawler Dependencies
- name: Cache Node Modules | Crawler
id: cache-crawler-yarn
uses: actions/cache@v3
env:
cache-name: cache-crawler-yarn
with:
path: ./crawler/node_modules/
key: cache-crawler-yarn-${{ hashFiles('crawler/yarn.lock') }}
- name: Install Node Modules | Crawler
if: steps.cache-crawler-yarn.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
working-directory: ./crawler
- name: Check Style | Crawler
run: yarn format
working-directory: ./crawler
crawler-checks-types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 22.12.0
uses: actions/setup-node@v3
with:
node-version: 22.12.0
# Install + Cache Crawler Dependencies
- name: Cache Node Modules | Crawler
id: cache-crawler-yarn
uses: actions/cache@v3
env:
cache-name: cache-crawler-yarn
with:
path: ./crawler/node_modules/
key: cache-crawler-yarn-${{ hashFiles('crawler/yarn.lock') }}
- name: Install Node Modules | Crawler
if: steps.cache-crawler-yarn.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
working-directory: ./crawler
- name: Check Style | Crawler
run: yarn check:ts
working-directory: ./crawler