Skip to content

Commit

Permalink
Merge pull request #86 from EhsanulHaqueSiam/main
Browse files Browse the repository at this point in the history
Update java-ci.yml
  • Loading branch information
EhsanulHaqueSiam committed Jun 23, 2023
2 parents 404fb91 + 71349fa commit eb036ce
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/java-ci.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: Java CI
# name: Java CI

on:
pull_request:
branches:
- main
# on:
# pull_request:
# branches:
# - main

jobs:
build:
runs-on: ubuntu-latest
# jobs:
# build:
# runs-on: ubuntu-latest

steps:
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '19'
distribution: 'adopt'
# steps:
# - name: Set up JDK
# uses: actions/setup-java@v2
# with:
# java-version: '19'
# distribution: 'adopt'

- name: Check out code
uses: actions/checkout@v2
# - name: Check out code
# uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2.4.0
with:
node-version: '19'
# - name: Set up Node.js
# uses: actions/setup-node@v2.4.0
# with:
# node-version: '19'

- name: Compile Java
run: javac Main.java
# - name: Compile Java
# run: javac Main.java

- name: Set build status
id: build
run: |
if [ -z "$(javac Main.java 2>&1)" ]; then
echo "build-status=success" >> $GITHUB_ENV
else
echo "build-status=failure" >> $GITHUB_ENV
fi
# - name: Set build status
# id: build
# run: |
# if [ -z "$(javac Main.java 2>&1)" ]; then
# echo "build-status=success" >> $GITHUB_ENV
# else
# echo "build-status=failure" >> $GITHUB_ENV
# fi

0 comments on commit eb036ce

Please sign in to comment.