forked from bloom-housing/bloom
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (49 loc) · 1.43 KB
/
etl.yml
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
name: Listings import
# This is mostly copied from the root lint action (lint.yml)
# It's kept separate to:
# 1) make it easy to remove when no longer needed;
# 2) make it easy to break out into a separate repo before then if needed;
# 3) avoid any unecessary cross-package dependencies on node version; and
# 4) take advantage of parallelization due to long lint run durations
on:
# Trigger the workflow on pull request,
# but only for the main branch
pull_request:
branches:
- main
jobs:
run-etl-linter:
name: Lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: tasks/import-listings
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 18
# ESLint and Prettier must be in `package.json`
- name: Install Node.js dependencies
run: yarn install
- name: Run linters
run: yarn lint
run-etl-tests:
name: Run unit tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: tasks/import-listings
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 18
- name: Install Node.js dependencies
run: yarn install
- name: Run tests
run: yarn test