Skip to content

CI: scripts/usb_reset_test.py: Test usb_reset.py function setup_cgroup() #8

CI: scripts/usb_reset_test.py: Test usb_reset.py function setup_cgroup()

CI: scripts/usb_reset_test.py: Test usb_reset.py function setup_cgroup() #8

Workflow file for this run

name: Check format
on:
pull_request:
branches:
- master
- 'feature/**'
- '*-lcm'
jobs:
ocaml-format:
name: Ocaml files
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Pull configuration from xs-opam
run: |
curl --fail --silent https://raw.githubusercontent.com/xapi-project/xs-opam/master/tools/xs-opam-ci.env | cut -f2 -d " " > .env
- name: Load environment file
id: dotenv
uses: falti/[email protected]
- name: Update Ubuntu repositories
run: sudo apt-get update
- name: Use ocaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ steps.dotenv.outputs.ocaml_version_full }}
opam-repositories: |
xs-opam: ${{ steps.dotenv.outputs.repository }}
dune-cache: true
opam-pin: false
- name: Install ocamlformat
run: opam install ocamlformat
- name: Check whether `make format` was run
run: opam exec -- dune build @fmt