generated from creek-service/aggregate-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.17 KB
/
test-scripts.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
# Workflow that checks the bootstrap, clean_up and add_service scripts in this repo produce valid code.
name: Test Scripts
on:
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
jobs:
test-scripts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Install zsh
run: sudo apt install zsh
- name: Set up Java
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.9.0
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Run boostrap script
shell: zsh {0}
run: ./.creek/bootstrap.sh "some-User-name/a_Nother-REpo_name" "some-User-name"
- name: Check compiles & runs
run: ./gradlew static test
- name: Add service
shell: zsh {0}
run: ./.creek/add_service.sh first-service
- name: Check compiles & runs
run: ./gradlew static test
- name: Add 2nd service
shell: zsh {0}
run: ./.creek/add_service.sh second-service
- name: Check compiles & runs
run: ./gradlew static test