add test #17
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
name: Check assignment rules | |
on: push | |
jobs: | |
nmec: | |
name: Check I created NMEC.txt | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Check file existence | |
id: check_files | |
uses: andstor/file-existence-action@v2 | |
with: | |
files: "NMEC.txt" | |
allow_failure: true | |
- name: File exists | |
if: steps.check_files.outputs.files_exists == 'true' | |
# Only runs if all of the files exists | |
run: grep -E '[0-9]{5}.?-[0-9]{5}.?' NMEC.txt | |
moss: | |
name: Check my code for plagiarism | |
runs-on: self-hosted | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Zip Folder | |
run: zip -r ${{ github.event.repository.name }}.zip . -x ".git/*" ".github/*" "tests/*" "*.txt" "*.md" LICENSE .gitignore && zip -u ${{ github.event.repository.name }}.zip NMEC.txt | |
- name: curl | |
run: | | |
curl --fail -F committer=${{ github.event.sender.login }} -F zip=@${{ github.event.repository.name }}.zip https://moss.av.it.pt/guiao2/upload |