Some garages may offer a free diagnostic check, but this often comes with a couple of caveats. In most cases, you will still have to pay for the repair work - and the price of the diagnostics test may even be factored into this quote.
If your car doesn't need any repair work, you may then also be charged for the garage's time during the initial diagnostic. As such, you are unlikely to ever find a completely free diagnostic process.