Skip to content

Commit

Permalink
Fix regression and add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
chaaaaun committed Feb 18, 2024
1 parent e80f15a commit c2e18e4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Java CI

on: [push, pull_request]

jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}

steps:
- name: Set up repository
uses: actions/checkout@master

- name: Set up repository
uses: actions/checkout@master
with:
ref: master

- name: Merge to master
run: git checkout --progress --force ${{ github.sha }}

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Setup JDK 11
uses: actions/setup-java@v1
with:
java-version: '11'
java-package: jdk+fx

- name: Build and check with Gradle
run: ./gradlew check

- name: Run tests
run: ./gradlew test
2 changes: 0 additions & 2 deletions src/main/java/chatbot/Command.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ public enum Command {
Command(String cmd, boolean hasArgs) {
this.rep = cmd.toLowerCase();
this.hasArgs = hasArgs;
this.isBreaking = this.rep.equals("bye");

}

public boolean hasArgs() {
Expand Down

0 comments on commit c2e18e4

Please sign in to comment.