Files
test-ci/yml_example.md
T
2025-07-24 10:58:06 +02:00

1.4 KiB

name: Run CI Tests   
 
on:            
  push:                
    branches: [test_actions_on_utils]     
  pull_request:     
   
jobs:   
  test:
    runs-on: ubuntu-latest 
    steps: 
      - name: Checkout test-ci repo 
        uses: actions/checkout@v4
        with:
          repository: tligui_y/test-ci
          ref: main
          path: test-ci
          
      - name: Run scripts and test-ci actions
        uses: ./test-ci
        with:
          ci-branch: test_actions_on_utils
          module-dir: slic
          report-dir: ci-reports
          gitea-domain: gitea.psi.ch
          repo-path: tligui_y/slic
          ci-token: ${{ secrets.CI_TOKEN }} 
        continue-on-error: true

##################################### NOT TO CHANGE #################################

      - name: Pixi download
        run: |
          chmod +x temp-ci/give_runs_log.sh
          ./temp-ci/give_runs_log.sh "outputs/pixi.log"

      - name: Run tests and generate reports
        run: |
          ./temp-ci/give_runs_log.sh "outputs/test-ci.log"

      - name: Prepare the push to wiki
        run: |
          ./temp-ci/give_runs_log.sh "outputs/wiki-clone.log"

      - name: Commit to wiki
        run: |
          ./temp-ci/give_runs_log.sh "outputs/commit-push-wiki.log"

      - name: Wiki report URLs
        run: |
          ./temp-ci/give_runs_log.sh "outputs/wiki-report-urls.log"