# This is a basic workflow to help you get started with Actions
name: Test using DIT300's test suite
# Controls when the action will run.
on:
push:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: tda283/tester:latest
options: --user root
steps:
- uses: actions/checkout@v4
- name: Fix clashing Git owneship in GH Action
run: git config --global --add safe.directory /__w/javalette/javalette
- name: Create archive
run: ./millw -i archive.zip
- name: Run testing suite
run: |
cd /home/user/project/tester
python3 testing.py "$GITHUB_WORKSPACE/out/archive/zip.dest/javalette-BARRERE-FROMENTIN.zip" | awk -v s="FAILED" '$0~s{r=1} 1; END{exit(r)}'