11import { setupLLVM , VERSIONS , getUrl , setupClangTools , getLinuxUrl } from "../llvm"
22import { getSpecificVersionAndUrl } from "../../utils/setup/version"
33import { isUrlOnline } from "is-url-online"
4- import { setupTmpDir , cleanupTmpDir , testBin } from "../../utils/tests/test-helpers"
4+ import { setupTmpDir , testBin } from "../../utils/tests/test-helpers"
55import ciDetect from "@npmcli/ci-detect"
66import execa from "execa"
77import path , { addExeExt } from "patha"
88import { chmodSync } from "fs"
99import { getVersion } from "../../default_versions"
1010import { ubuntuVersion } from "../../utils/env/ubuntu_version"
11+ import * as io from "@actions/io"
1112
1213jest . setTimeout ( 400000 )
1314async function testUrl ( version : string ) {
@@ -123,8 +124,8 @@ describe("setup-llvm", () => {
123124 } )
124125
125126 it ( "should setup LLVM 15.0.2" , async ( ) => {
126- await cleanupTmpDir ( "llvm" )
127- await cleanupTmpDir ( "/Users/runner/hostedtoolcache/llvm" )
127+ await io . rmRF ( directory )
128+ await io . rmRF ( "/Users/runner/hostedtoolcache/llvm" )
128129
129130 const { binDir } = await setupLLVM ( "15.0.2" , directory , process . arch )
130131 await testBin ( "clang++" , [ "--version" ] , binDir )
@@ -143,6 +144,6 @@ describe("setup-llvm", () => {
143144 } )
144145
145146 afterAll ( async ( ) => {
146- await cleanupTmpDir ( "llvm" )
147+ await io . rmRF ( directory )
147148 } , 100000 )
148149} )
0 commit comments