-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
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 | ||
|
||
- name: Upload JARs as artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: generated-jars | ||
path: lib/*.jar |