In August 2018,
Sri Lanka Cricket named him in a preliminary squad of 31 players for the
2018 Asia Cup. In November 2018, he was added to Sri Lanka's squad as a replacement for
Akila Dananjaya ahead of the third
Test against England. In December 2018, he was named in Sri Lanka team for the
2018 ACC Emerging Teams Asia Cup. In March 2024, he was named in
Sri Lankan test squad for their test series against Bangladesh as the selection think-tank decided to add an extra spinner for the series and as a result, Peiris made the cut replacing seamer
Milan Rathnayake. In September 2024, Peiris was drafted as a replacement for
Vishwa Fernando, as the latter had confronted a leg injury
prior to the start of the second test match against New Zealand. Peiris made test debut against New Zealand in the second test, replacing
Ramesh Mendis. In the first innings, he got 3 wickets and helped
Prabath Jayasuriya to dismantle New Zealand for 88 runs. In the second innings, he took his maiden five wicket haul and ended with 6 for 170 runs, where Sri Lanka won the match by an innings and 154 runs and series 2–0. He became only the fourth Sri Lankan to take a six-wicket haul in an innings on test debut and with a match bag of nine wickets, he was only behind Prabath Jayasuriya and
Praveen Jayawickrama for having taken most number of wickets by a Sri Lankan bowler on test debut. In January 2025, he was named in
Sri Lanka's test squad for their two-match test series against Australia. During Australia' first innings, under scorching sun, he alongside his spin compatriots Prabath Jayasuriya and
Jeffrey Vandersay bowled a marathon spell of overs combining a record total of 139 overs and out of which Peiris bowled a total of 41 overs. He conceded 189 runs during the marathon spell of 41 overs with a slightly expensive economy rate of 4.61 and during the process he also set the record for having registered the worst bowling figures by a Sri Lankan bowler in an innings of a test match as he ended up wicketless throughout his quota of overs despite having leaked 189 runs. ==References==