General Motors NYSE:GM beat second-quarter estimates on both revenue and earnings, then raised its full-year outlook for the second time this year.

The automaker reported adjusted earnings of $3.57 per share, beating expectations by $0.39. Revenue rose 1.9% from a year earlier to $48.03 billion, coming in about $940 million above Wall Street forecasts.

GM sells vehicles under brands including Chevrolet, GMC, Cadillac and Buick, while also investing heavily in electric vehicles, software and autonomous driving. Its results remain closely tied to North American pricing, truck demand and cost control.

The company now expects adjusted EBIT of $14 billion to $16 billion, up from $13.5 billion to $15.5 billion. Adjusted automotive free cash flow guidance also rose to $9.5 billion to $11.5 billion, while adjusted EPS is now seen at $12 to $14.