Skip to content

add test

add test #17

Workflow file for this run

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