-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve count with intent to add to CI (#281)
Co-authored-by: Henry LE BERRE <hberre3@gatech.edu>
- Loading branch information
1 parent
334046b
commit 0b05ff3
Showing
6 changed files
with
127 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Check Line Counts | ||
on: [push] | ||
|
||
jobs: | ||
sz: | ||
name: Core MFC Line Difference | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code from PR branch | ||
uses: actions/checkout@v4 | ||
with: | ||
path: pr | ||
|
||
- name: Checkout code from MFC master | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ github.event.pull_request.repository }} | ||
ref: ${{ github.event.pull_request.base.ref }} | ||
path: base | ||
# repository: MFlowCode/MFC | ||
# ref: master | ||
# path: base | ||
|
||
- name: Setup MFCs | ||
run: | | ||
BASE="$GITHUB_WORKSPACE/base" | ||
PR="$GITHUB_WORKSPACE/pr" | ||
cd $BASE | ||
./mfc.sh count | ||
cd $PR | ||
./mfc.sh count | ||
- name: Counting Lines | ||
run: | | ||
BASE="$GITHUB_WORKSPACE/base" | ||
PR="$GITHUB_WORKSPACE/pr" | ||
cd $BASE | ||
echo "___BASE______________" | ||
./mfc.sh count | ||
cd $PR | ||
echo "___PR________________" | ||
./mfc.sh count | ||
# - name: Get Line Diff | ||
# run: | | ||
# BASE="$GITHUB_WORKSPACE/base" | ||
# PR="$GITHUB_WORKSPACE/pr" | ||
# cd $BASE | ||
# export MFC_PR=$PR | ||
# pwd | ||
# ./mfc.sh count_diff | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,3 @@ jobs: | |
file: toolchain/Dockerfile | ||
push: true | ||
tags: ${{ secrets.DOCKER_USERNAME }}/mfc:latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ jobs: | |
uses: actions/checkout@v3 | ||
|
||
- name: Spell Check | ||
uses: crate-ci/typos@master | ||
uses: crate-ci/typos@master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters