-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.24 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
41
42
43
44
45
46
# Checks the repo builds correctly once the bootstrap & init template has run...
name: Test Scripts
on:
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
jobs:
build-clone:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Install zsh
run: sudo apt install zsh
- name: Set up Java
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0
with:
java-version: '16'
distribution: 'adopt'
cache: gradle
- name: Run boostrap script
shell: zsh {0}
run: ./.specmesh/bootstrap.sh "some-User-name/a_Nother-REpo_name" "some-User-name"
- name: Check compiles & runs
run: |
./gradlew check
./gradlew clean
- name: Add service
shell: zsh {0}
run: ./.specmesh/add_service.sh my-service
- name: Check compiles & runs
run: |
./gradlew check
./gradlew clean
- name: Add 2nd service
shell: zsh {0}
run: ./.specmesh/add_service.sh other-service
- name: Check compiles & runs
run: |
./gradlew check
./gradlew clean