From a9d043b82ba23ff8430e2de3b86d32282a2bab74 Mon Sep 17 00:00:00 2001 From: Arist937 Date: Mon, 5 Feb 2024 14:02:00 -0500 Subject: [PATCH 1/3] add github actions demo --- .../workflows/.github-actions-demo.yml.un~ | Bin 0 -> 523 bytes .github/workflows/github-actions-demo.yml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/.github-actions-demo.yml.un~ create mode 100644 .github/workflows/github-actions-demo.yml diff --git a/.github/workflows/.github-actions-demo.yml.un~ b/.github/workflows/.github-actions-demo.yml.un~ new file mode 100644 index 0000000000000000000000000000000000000000..fa562b05135635889f5fa94a85c4a26e1724ac9d GIT binary patch literal 523 zcmWH`%$*;a=aT=Ff$8(?Q#bsy{ua%ve>6MQYqmZs!~9tXw+c^V>w5k7BuCLw1_lNp zAVvm^Kn@6l0E`XhryewDV1bClUx3J?kTAty!T&(Oz>Fe4%Aslq0HdQG8XaFH&`bu$ JmuchkRR9M@A!7gl literal 0 HcmV?d00001 diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml new file mode 100644 index 0000000..15a61d6 --- /dev/null +++ b/.github/workflows/github-actions-demo.yml @@ -0,0 +1,18 @@ +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 }}." From ff432cdb28f02297c51645e9cb18f32459cae56c Mon Sep 17 00:00:00 2001 From: Arist Xu <31931766+Arist937@users.noreply.github.com> Date: Mon, 5 Feb 2024 14:05:18 -0500 Subject: [PATCH 2/3] create maven.yml --- .github/workflows/maven.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..afe4fe3 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,35 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Java CI with Maven + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml + + # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive + - name: Update dependency graph + uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 From 64e5106ff853d9bbe53a1f6d2f5abe9cf17aed6c Mon Sep 17 00:00:00 2001 From: Arist937 Date: Mon, 5 Feb 2024 14:07:26 -0500 Subject: [PATCH 3/3] break --- src/main/java/ca/uwaterloo/cs/helloworld/App.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ca/uwaterloo/cs/helloworld/App.java b/src/main/java/ca/uwaterloo/cs/helloworld/App.java index 69254b7..966105a 100644 --- a/src/main/java/ca/uwaterloo/cs/helloworld/App.java +++ b/src/main/java/ca/uwaterloo/cs/helloworld/App.java @@ -7,6 +7,6 @@ public class App { public static void main( String[] args ) { - System.out.println( "Hello, world!" ); + System.out.println( "Hello, world!" ) } }