From 8ad11e2c9259e782dc604e0caf84e1c998095bf9 Mon Sep 17 00:00:00 2001 From: abrarrakin <63086922+abrar-rakin@users.noreply.github.com> Date: Sat, 10 Feb 2024 20:54:16 -0500 Subject: [PATCH 1/2] new --- .github/workflows/github-actions-demo.yml | 19 +++++++++++++++++++ .../ca/uwaterloo/cs/helloworld/AppTest.java | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/github-actions-demo.yml diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml new file mode 100644 index 0000000..769842c --- /dev/null +++ b/.github/workflows/github-actions-demo.yml @@ -0,0 +1,19 @@ +name: GitHub Actions Demo +run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." + diff --git a/src/test/java/ca/uwaterloo/cs/helloworld/AppTest.java b/src/test/java/ca/uwaterloo/cs/helloworld/AppTest.java index b2c36d4..79154a4 100644 --- a/src/test/java/ca/uwaterloo/cs/helloworld/AppTest.java +++ b/src/test/java/ca/uwaterloo/cs/helloworld/AppTest.java @@ -15,6 +15,6 @@ public class AppTest @Test public void shouldAnswerWithTrue() { - assertTrue( false ); + assertTrue( true ); } } From 4975ff37fabb7547775ef03b36edc10f1dd7de1c Mon Sep 17 00:00:00 2001 From: abrarrakin <63086922+abrar-rakin@users.noreply.github.com> Date: Sat, 10 Feb 2024 20:57:16 -0500 Subject: [PATCH 2/2] new2 --- src/test/java/ca/uwaterloo/cs/helloworld/AppTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/ca/uwaterloo/cs/helloworld/AppTest.java b/src/test/java/ca/uwaterloo/cs/helloworld/AppTest.java index 79154a4..b2c36d4 100644 --- a/src/test/java/ca/uwaterloo/cs/helloworld/AppTest.java +++ b/src/test/java/ca/uwaterloo/cs/helloworld/AppTest.java @@ -15,6 +15,6 @@ public class AppTest @Test public void shouldAnswerWithTrue() { - assertTrue( true ); + assertTrue( false ); } }