name: C++ on: push: branches: [master] pull_request: permissions: contents: read jobs: format: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - name: Install dos2unix run: sudo apt-get install -y dos2unix - name: Check formatting run: ./format.sh && git diff --exit-code