forked from benedikt-schesch/AST-Merging-Evaluation
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (62 loc) · 1.79 KB
/
small-test.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
name: Run Small test
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
maven: [ '3.9.2']
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 8
- run: echo "JAVA8_HOME=$JAVA_HOME" >> $GITHUB_ENV
- run: java -version
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
- run: echo "JAVA11_HOME=$JAVA_HOME" >> $GITHUB_ENV
- run: java -version
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- run: echo "JAVA17_HOME=$JAVA_HOME" >> $GITHUB_ENV
- run: echo "${GITHUB_WORKSPACE}/src/scripts/merge_tools" >> $GITHUB_PATH
- run: java -version
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Setup miniconda
uses: conda-incubator/[email protected]
with:
python-version: 3.8
auto-update-conda: true
channels: conda-forge,defaults
activate-environment: AST
environment-file: environment.yml
- name: Install PdfLaTeX
run: sudo apt update && sudo apt install texlive-latex-extra -y
- name: Install maven
uses: s4u/[email protected]
with:
java-version: 17
maven-version: ${{ matrix.maven }}
- name: Clean caches & workspace
run: make clean
- name: Build Java programs
run: ./gradlew build
- name: Run small test
run: |
git config --global user.email "[email protected]"
git config --global user.name "Example Example"
make small-test
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}