Update generate_jars.yml #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate JUnit and Mockito JARs and Build with Ant | |
on: | |
push: | |
branches: | |
- workflow-for-binaries # Change this to your main branch name | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download JUnit and Mockito JARs | |
run: | | |
mkdir -p lib | |
wget -O lib/junit.jar https://repo1.maven.org/maven2/junit/junit/4.13.2/junit-4.13.2.jar | |
wget -O lib/mockito.jar https://repo1.maven.org/maven2/org/mockito/mockito-core/3.12.4/mockito-core-3.12.4.jar | |
- name: Run Ant build | |
run: | | |
ant clean -f java/build.xml | |
ant jar -f java/build.xml | |
ant junit -f java/build.xml | |
- name: Upload JARs as artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: generated-jars | |
path: lib/*.jar |