ocaml-opentelemetry/.github/workflows/format.yml
Simon Cruanes 4e80493e4a
run gha as root in docker
using the opam user wouldn't work for actions like checkout
2026-04-06 11:59:28 -04:00

22 lines
381 B
YAML

name: format
on:
push:
branches:
- main
pull_request:
jobs:
format:
name: format
runs-on: ubuntu-latest
container:
image: ghcr.io/ocaml-tracing/ocaml-opentelemetry/ci-4.14:latest
options: --user root
steps:
- uses: actions/checkout@v4
- run: chown -R opam:opam .
- run: su opam -c "opam exec -- make format-check"