From 66d004e1636a8538ed1f804aa93f69c76870b2d8 Mon Sep 17 00:00:00 2001 From: burgess01 Date: Tue, 3 May 2022 15:48:28 -0400 Subject: [PATCH 01/12] Create template problem-matcher --- gatorgrade-problem-matcher.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 gatorgrade-problem-matcher.json diff --git a/gatorgrade-problem-matcher.json b/gatorgrade-problem-matcher.json new file mode 100644 index 0000000..00107ad --- /dev/null +++ b/gatorgrade-problem-matcher.json @@ -0,0 +1,17 @@ +{ + "problemMatcher": [ + { + "owner": "gatorgrade", + "pattern": [ + { + "regexp": "✘\\x1B\\[0m (.*)$", + "message": 1 + }, + { + "regexp": "➔\\x1B\\[0m \\x1B\\[33m(.*)\\x1B\\[0m$", + "code": 1 + } + ] + } + ] +} \ No newline at end of file From facdc18d577d06f56113827a23e8e476c7470d64 Mon Sep 17 00:00:00 2001 From: burgess01 Date: Tue, 3 May 2022 15:48:37 -0400 Subject: [PATCH 02/12] Create template action.yml --- action.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..d511c0b --- /dev/null +++ b/action.yml @@ -0,0 +1,17 @@ +name: 'Gatorgrade' +description: 'Execute Gatorgrade' +author: 'Katherine Burgess' +runs: + using: + steps: + - run: | + echo "::group:: Install Pipenv" + pip install pipenv==2022.4.21 + echo "::endgroup::" + echo"::add-matcher::${{ github.action_path }}/gatorgrade-problem-matcher.json + gradle --no-daemon gradle + echo "::remove-matcher owner=gatorgrade::" + shell: bash +branding: + icon: 'user-check' + color: 'green' From 59c5710e6e944d9ae51ba1952d55f88946697916 Mon Sep 17 00:00:00 2001 From: burgess01 Date: Tue, 3 May 2022 16:27:58 -0400 Subject: [PATCH 03/12] Create basic README --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c2c2991..3f06c2e 100644 --- a/README.md +++ b/README.md @@ -1 +1,20 @@ -# gatorgrade-action \ No newline at end of file +# gatorgrade-action + +This GitHub Action runs Gatorgrade. + +## Usage + +Basic workflow to run Gatorgrade on every push to GitHub: + +''' +name: Grader +on: [push] +jobs: + grade: + run-on: ubuntu-latest + steps: + -name: Checkout repository + uses: actions/checkout@v2 + -name: Run Gatorgrade + uses: GatorEducator/gatorgrade-action@v1 +''' \ No newline at end of file From 19d62fcec3e6861b058b07ff1b36c2897f6ad16c Mon Sep 17 00:00:00 2001 From: burgess01 Date: Tue, 3 May 2022 16:28:11 -0400 Subject: [PATCH 04/12] Correct action.yml contents --- action.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/action.yml b/action.yml index d511c0b..df6874b 100644 --- a/action.yml +++ b/action.yml @@ -2,15 +2,13 @@ name: 'Gatorgrade' description: 'Execute Gatorgrade' author: 'Katherine Burgess' runs: - using: + using: "composite" steps: - - run: | - echo "::group:: Install Pipenv" - pip install pipenv==2022.4.21 - echo "::endgroup::" - echo"::add-matcher::${{ github.action_path }}/gatorgrade-problem-matcher.json - gradle --no-daemon gradle - echo "::remove-matcher owner=gatorgrade::" + - run: echo + echo "::group::Install Gatorgrade" + pip install gatorgrade + echo "::endgroup::" + gatorgrade shell: bash branding: icon: 'user-check' From 89f1f3889d5b98d4e7e98fbb7bf859c6c7cfd334 Mon Sep 17 00:00:00 2001 From: Katie Burgess <70536041+burgess01@users.noreply.github.com> Date: Tue, 3 May 2022 17:14:06 -0400 Subject: [PATCH 05/12] Replace echo --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index df6874b..868edca 100644 --- a/action.yml +++ b/action.yml @@ -4,7 +4,7 @@ author: 'Katherine Burgess' runs: using: "composite" steps: - - run: echo + - run: | echo "::group::Install Gatorgrade" pip install gatorgrade echo "::endgroup::" From c4e8a9747573af4f612f022440c5528ccb4ee653 Mon Sep 17 00:00:00 2001 From: Katie Burgess <70536041+burgess01@users.noreply.github.com> Date: Tue, 3 May 2022 17:17:23 -0400 Subject: [PATCH 06/12] Delete json file --- gatorgrade-problem-matcher.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 gatorgrade-problem-matcher.json diff --git a/gatorgrade-problem-matcher.json b/gatorgrade-problem-matcher.json deleted file mode 100644 index 00107ad..0000000 --- a/gatorgrade-problem-matcher.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "problemMatcher": [ - { - "owner": "gatorgrade", - "pattern": [ - { - "regexp": "✘\\x1B\\[0m (.*)$", - "message": 1 - }, - { - "regexp": "➔\\x1B\\[0m \\x1B\\[33m(.*)\\x1B\\[0m$", - "code": 1 - } - ] - } - ] -} \ No newline at end of file From e03f4866067837be964b6254811c1744e7b509f0 Mon Sep 17 00:00:00 2001 From: Katie Burgess <70536041+burgess01@users.noreply.github.com> Date: Wed, 4 May 2022 16:45:48 -0400 Subject: [PATCH 07/12] Correct GatorGrade capitalization Co-authored-by: Saejin Heinert --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 868edca..4e06bfe 100644 --- a/action.yml +++ b/action.yml @@ -5,7 +5,7 @@ runs: using: "composite" steps: - run: | - echo "::group::Install Gatorgrade" + echo "::group::Install GatorGrade" pip install gatorgrade echo "::endgroup::" gatorgrade From b03c9e384c706118cc32e5b73d94a0f7d0272f8b Mon Sep 17 00:00:00 2001 From: Katie Burgess <70536041+burgess01@users.noreply.github.com> Date: Wed, 4 May 2022 16:46:01 -0400 Subject: [PATCH 08/12] Correct GatorGrade capitalization Co-authored-by: Saejin Heinert --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3f06c2e..ec98cb7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # gatorgrade-action -This GitHub Action runs Gatorgrade. +This GitHub Action runs GatorGrade. ## Usage From fd821d147cfb2d809f902d1381c96b6c41fcb9b7 Mon Sep 17 00:00:00 2001 From: Katie Burgess <70536041+burgess01@users.noreply.github.com> Date: Wed, 4 May 2022 16:46:25 -0400 Subject: [PATCH 09/12] Correct GatorGrade capitalization Co-authored-by: Saejin Heinert --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ec98cb7..4067350 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This GitHub Action runs GatorGrade. ## Usage -Basic workflow to run Gatorgrade on every push to GitHub: +Basic workflow to run GatorGrade on every push to GitHub: ''' name: Grader From 08d5edaccc73985371050db212bc2d8c5d4f2488 Mon Sep 17 00:00:00 2001 From: burgess01 Date: Wed, 4 May 2022 16:48:32 -0400 Subject: [PATCH 10/12] Correct README example usage --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4067350..5598e88 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ jobs: grade: run-on: ubuntu-latest steps: - -name: Checkout repository - uses: actions/checkout@v2 - -name: Run Gatorgrade - uses: GatorEducator/gatorgrade-action@v1 + - name: Checkout repository + uses: actions/checkout@v2 + - name: Run Gatorgrade + uses: GatorEducator/gatorgrade-action@v1 ''' \ No newline at end of file From 6229a37cb6aa740114358aac2a66108b30813229 Mon Sep 17 00:00:00 2001 From: burgess01 Date: Wed, 4 May 2022 16:49:37 -0400 Subject: [PATCH 11/12] Indent action run steps --- action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 4e06bfe..8eb066d 100644 --- a/action.yml +++ b/action.yml @@ -5,10 +5,10 @@ runs: using: "composite" steps: - run: | - echo "::group::Install GatorGrade" - pip install gatorgrade - echo "::endgroup::" - gatorgrade + echo "::group::Install GatorGrade" + pip install gatorgrade + echo "::endgroup::" + gatorgrade shell: bash branding: icon: 'user-check' From 0c936d16e8d24c28f5c3f38ef2a957e362cc7221 Mon Sep 17 00:00:00 2001 From: Katie Burgess <70536041+burgess01@users.noreply.github.com> Date: Thu, 5 May 2022 10:02:33 -0400 Subject: [PATCH 12/12] Correct code block --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5598e88..613b357 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This GitHub Action runs GatorGrade. Basic workflow to run GatorGrade on every push to GitHub: -''' +``` name: Grader on: [push] jobs: @@ -17,4 +17,4 @@ jobs: uses: actions/checkout@v2 - name: Run Gatorgrade uses: GatorEducator/gatorgrade-action@v1 -''' \ No newline at end of file +```