Skip to content

Commit

Permalink
Merge pull request #3 from NereusWB922/branch-A-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
NereusWB922 authored Sep 10, 2023
2 parents 6d23cde + dcce96f commit e68f3e5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
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: Add execute permission to gradlew
run: chmod +x ./gradlew

- name: Build and check with Gradle
run: ./gradlew check
2 changes: 1 addition & 1 deletion src/main/java/corgi/parsers/CommandParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ private Command newAddDeadlineCommand(String[] inputs) throws InvalidCommandForm

private Command newAddEventCommand(String[] inputs) throws InvalidCommandFormatException {
String commandFormat = CommandType.EVENT.getCommandFormat();

if (inputs.length == 1) {
throw new InvalidCommandFormatException("No argument is provided!" + "\nFormat: "
+ commandFormat);
Expand Down

0 comments on commit e68f3e5

Please sign in to comment.