name: ubuntu2204

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  make_check:
    runs-on: ubuntu-latest
    container:
      image: stbtester/ci:ubuntu2204
      env:
        python_version: 3
        LANG: en_GB.UTF-8
        SHELL: /bin/bash
        TERM: xterm
        enable_virtual_stb: no
    steps:
    - uses: actions/checkout@v3
    - run: tesseract --version
    - run: make check-pylint
    - run: make check-pytest
    - run: make check-integrationtests

name: ubuntu2204

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  make_check:
    runs-on: ubuntu-latest
    container:
      image: stbtester/ci:ubuntu2204
      env:
        python_version: 3
        LANG: en_GB.UTF-8
        SHELL: /bin/bash
        TERM: xterm
        enable_virtual_stb: no
    steps:
    - uses: actions/checkout@v3
    - run: git config --global --add safe.directory /__w/stb-tester/stb-tester
    - run: tesseract --version
    - run: make check-pylint
    - run: make check-pytest
    - run: make check-integrationtests

Fix "fatal: unsafe repository is owned by someone else"
.github: Fix "fatal: unsafe repository is owned by someone else"

> fatal: unsafe repository ('/__w/stb-tester/stb-tester' is owned by someone else)
> To add an exception for this directory, call:
> 	git config --global --add safe.directory /__w/stb-tester/stb-tester

I think this was causing `git ls-files` to fail in `make check`.
