Update 0303-arguments.yml #19
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: 0303-build-tomcat | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out 0303-tomcat-users.xml | |
uses: actions/checkout@v3 | |
- name: List project files and java version | |
run: | | |
ls -ltr | |
java -version | |
javac --version | |
- name: Check out Apache Tomcat | |
uses: actions/checkout@v3 | |
with: | |
repository: apache/tomcat # Repository name with owner | |
ref: main # The branch, tag or SHA to checkout | |
path: ./tomcat # Relative path under $GITHUB_WORKSPACE | |
- name: Setup Java 8 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: '8.0' # The JDK version to make available on the path | |
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk | |
architecture: x64 # (x64 or x86) - defaults to x64 | |
- name: List project files and java version | |
run: | | |
ls -ltr | |
java -version | |
javac -version | |
- name: Copy 0303-tomcat-users.xml into Tomcat configuration directory | |
run: cp -v 0303-tomcat-users.xml ./tomcat/conf/tomcat-users.xml | |
- name: Compile Tomcat | |
run: | | |
cd ./tomcat | |
ant -version | |
ant -v | grep -i "java version" |