-
Notifications
You must be signed in to change notification settings - Fork 60
49 lines (39 loc) · 1.21 KB
/
validate-records.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
name: Validate the massbank records
on:
push:
pull_request:
branches:
- 'dev'
- 'main'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout massbank-web dev
uses: actions/checkout@v3
with:
repository: MassBank/MassBank-web
path: .scripts/MassBank-web
fetch-depth: 1
ref: dev
if: ${{ (github.ref != 'refs/heads/main') && (github.base_ref != 'main') }}
- name: Checkout massbank-web main
uses: actions/checkout@v3
with:
repository: MassBank/MassBank-web
path: .scripts/MassBank-web
fetch-depth: 1
ref: main
if: ${{ (github.ref == 'refs/heads/main') || (github.base_ref == 'main') }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Build with Maven
working-directory: .scripts/MassBank-web/MassBank-Project
run: mvn --batch-mode --update-snapshots -f MassBank-lib/pom.xml package
- name: Run the validating script
run: bash .scripts/run_validation.sh