ARLINGTON, Texas (AP) — Nathan Eovaldi was well aware that he was throwing a no-hitter. The New York Yankees right-hander from the same hometown as baseball's no-hit and strikeout king will take the seven-plus scoreless innings.

Eovaldi lost his no-hit bid when Rangers rookie Nomar Mazara led off the seventh with a single but pitched into the eighth without allowing a run for his first victory his four starts this season as the Yankees won 3-1 at Texas on Monday night.

"In the fifth inning. I realized I had it going on. Once it's over with, it's over with," Eovaldi said. "And I just want to try to go as deep in the game as I can. ... When it was hit, I thought it was an out. But with the shift, the ball made it through."

The Rangers were without a hit until Mazara, a day before his 21st birthday, singled through the left side of the infield. After Mazara was wiped out by a double play, Prince Fielder swung at a high pitch for a double to right-center before Ian Desmond grounded out to end the inning.

"He was amazing. His split ... anything that started at your thigh went straight to the ground," Fielder said. "Obviously if you can get a big-league team to go no hits through the seventh, you're doing something good."

Jacoby Ellsbury and Starlin Castro had solo homers for the Yankees off Cesar Ramos (0-1), the lefty starting in place of Cole Hamels (sore groin).

After Eovaldi (1-2) walked Mitch Moreland to start the eighth, Dellin Betances took over and promptly got Elvis Andrus to ground into a double play before Brett Nicholas hit his first career homer. Andrew Miller worked a perfect ninth for his fifth save in as many opportunities as the Rangers lost their fourth straight game.

Eovaldi is only the second major league player from Alvin, Texas. The other is another big right-hander: Nolan Ryan, who threw a record seven no-hitters.

"We saw tonight what we saw toward the end of last year, and we'd love for that to continue," said Yankees first baseman Mark Teixeira, who was then asked what he saw from the pitcher. "Uncomfortable swings. You can tell how good a guy is and how good his stuff is by the reaction of the hitters. They're swinging at pitches in the dirt or they're swinging at pitches over their heads because it's just an uncomfortable at-bat."

Eovaldi threw 66 of his 98 pitches for strikes. He walked two and struck out six, ending his streak of seven consecutive starts with at least seven strikeouts that was tied with the longest in team history.

"I feel like I've progressed in each outing," he said. "It was good for everything to come together in this one."

LONG TIME AGO

The last Yankees no-hitter was David Cone's perfect game against Montreal on July 18, 1999. Texas hasn't been held hitless since Mark Buehrle threw one at home for the Chicago White Sox in 2007. The only no-hitter thrown in the Rangers' current ballpark was Kenny Rogers' perfect game in 1994, the year the stadium opened.

CHAPMAN IN TAMPA

Still about two weeks from finishing his 30-game suspension stemming from baseball's new domestic violence, new Yankees closer Aroldis Chapman allowed a home run Monday during his fifth outing at extended spring training in Tampa. It was the first run and second hit Chapman has allowed in his 4 2-3 innings. The left-hander's fastball was between 94-98 mph. The homer was hit by Lucas Williams, a 19-year-old minor league for the Philadelphia Phillies who didn't hit a homer in 38 rookie league games last season.

TRAINER'S ROOM

Yankees: DH Alex Rodriguez was out of the lineup a day after exiting a game because of stiffness in his left side. The 40-year-old Rodriguez said he felt good Monday and hoped to get back in the lineup as soon as possible. ... OF Aaron Hicks missed his third game in a row because of left shoulder bursitis. He stretched and threw before the game and manager Joe Girardi hopes he is back by the weekend.

Rangers: Hamels threw 26 pitches in a bullpen session without any issues, and could have another session Wednesday. It was the first time the left-hander threw off a mound since his start last Wednesday. He could be back in the rotation as early as Saturday. ... OF Shin-Soo Choo, on the DL since April 9 with a strain right calf, started hitting off a tee. He said he's feeling a lot better.

UP NEXT

Yankees: Luis Severino (0-2, 4.86), the 22-year-old right-hander and the youngest pitcher to start in the majors this season, makes his fourth start this season and 15th of his career.

Rangers: A.J. Griffin, who before this season hadn't pitched in the major since 2013 because of right elbow surgery, is 2-0 with a 3.18 ERA in three starts for Texas. He has thrown at least five innings in 31 consecutive starts, the third-longest active streak behind Jake Arrieta's 41 in a row and Madison Bumgarner's 34.