Giant planet formation with pebble accretion