Skip to content

Commit

Permalink
Add CI and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LimZiJia committed Feb 15, 2024
1 parent 46e1569 commit 27e21bf
Show file tree
Hide file tree
Showing 4 changed files with 157 additions and 149 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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
8 changes: 0 additions & 8 deletions data/duke.txt
Original file line number Diff line number Diff line change
@@ -1,8 +0,0 @@
T,0,2
T,0,3
T,0,5
T,0,4
T,0,4
T,0,s
T,0,s
T,0,a
Loading

0 comments on commit 27e21bf

Please sign in to comment.