Bryce Harper watches as his first home run of the spring leaves the yard on Friday vs. the Astros. (AP)

VIERA, Fla. -- The Nationals scored six runs in the first inning before going on to top the Astros, 8-5, at Space Coast Stadium on Friday afternoon.

Washington scored the six first-inning runs against left-hander Brett Oberholtzer, who allowed Denard Span to score the first run of the game on a wild pitch. Bryce Harper then hit a two-run homer to give Washington a 3-0 lead. The long ball was Harper's first of the spring.

Three batters later, Wilson Ramos hit a monster three-run homer that went completely out of the stadium in left field.

But the Astros would make it a one-run game by the fifth inning. With Tanner Roark on the mound, Marc Krauss put Houston on the board with a solo home run in the third.

An inning later, the Astros scored two unearned runs off Christian Garcia. George Springer reached base on a three-base error by Span in center field. Springer then scored on a sacrifice fly by Marwin Gonzalez. Carlos Corporan came across with the Astros' third run on a single by Robbie Grossman.

Reliever Rafael Soriano, appearing in his first game of the spring, allowed a two-run double to Corporan to make it a 6-5 game in the fifth.

Zach Walters would give the Nationals a three-run cushion by hitting a Josh Zeid pitch to left field for a single, scoring Will Rhymes and Jeff Kobernus. The runs were charged to right-hander Eric Williams.

Oberholtzer went two innings, with five of the six runs earned, while Roark gave up four hits and one run with three strikeouts over 2 2/3 innings.

Up next for the Nationals: The Nationals play split-squad games against the Braves and Cardinals on Saturday, both of which can be heard on Gameday Audio. Chris Young will get the start against the Cardinals in Jupiter, Fla., at 1:05 p.m. ET, while Taylor Jordan gets the nod against the Braves at Space Coast Stadium at 1:05.