-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (51 loc) · 1.54 KB
/
planner-generate-data.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
63
name: "Generate random data"
on:
workflow_dispatch:
schedule:
# At 03:00 on Thursdays.
- cron: '0 3 * * 4'
jobs:
generate:
name: "Generate and import random data."
timeout-minutes: 10
permissions:
# actions/checkout
contents: read
runs-on: ubuntu-24.04
defaults:
run:
shell: bash
steps:
- name: "Checkout ${{ github.ref }} branch in ${{ github.repository }} repository."
uses: actions/checkout@v4
- name: "Set up Java."
uses: actions/setup-java@v4
with:
java-version-file: planner/.java-version
distribution: temurin
- name: "Clean up workspace."
run: |
rm --verbose --force backend/sync/test/weekly_film_times.xml
#rm --verbose --force backend/sync/test/weekly_film_times_ie.xml
- name: "Generate random data."
env:
NEO4J_URL: ${{ secrets.NEO4J_URL }}
working-directory: planner
run: >
./gradlew
:backend:sync:generate
--args="test/weekly_film_times.xml"
- name: "Upload 'weekly_film_times.xml'."
uses: actions/upload-artifact@v4
with:
name: 'weekly_film_times.xml'
if-no-files-found: error
path: planner/backend/sync/test/weekly_film_times.xml
- name: "Import generated data."
env:
NEO4J_URL: ${{ secrets.NEO4J_URL }}
working-directory: planner
run: >
./gradlew
:backend:sync:run
--args="--folder=test performances films"