PPaste!

ci.yml

Home - All the pastes - Authored by Thooms

Raw version

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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 ownership 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)}'