-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.27 KB
/
check-seed-generators.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
name: Check seed data generators
on:
pull_request:
jobs:
check_seed_data_generators:
name: Check seed data generators
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: '18.19.0'
- name: Setup caching for node_modules
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Start e2e env
uses: HSLdevcom/jore4-tools/github-actions/setup-e2e-environment@setup-e2e-environment-v4
with:
custom_docker_compose: ./docker/docker-compose.custom.yml
- name: Install node_modules
# making sure that we do have the proper set of node_modules installed regardless of what's cached
run: yarn install --frozen-lockfile
- name: Build test-db-manager
run: yarn ws:db build
# Verify that the seed data generators succeed without errors, no further testing for now
# Only running timetables seed, because stop registry seed requires routes DB to be populated as well.
- name: Insert seed data
run: yarn ws:db seed:timetables