From bf0dbd9f813f8f709fa31acf6442f309e88dcfc5 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Tue, 12 Jul 2022 09:29:03 +0200 Subject: [PATCH] chore: remove debugging, build --- .github/workflows/test.yml | 12 +++++++++++- dist/utils/install.js | 4 ---- src/utils/install.ts | 4 ---- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 48c7bb4..aade00b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,4 +26,14 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Try bun - run: bun add types \ No newline at end of file + run: bun add types + + test-mac: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - name: Setup Bun + run: curl https://bun.sh/install | bash + + - name: Try bun + run: bun \ No newline at end of file diff --git a/dist/utils/install.js b/dist/utils/install.js index 3983396..0d2704a 100644 --- a/dist/utils/install.js +++ b/dist/utils/install.js @@ -4,16 +4,12 @@ import { addPath, info } from '@actions/core'; import getAsset from './getAsset.js'; import getHomeDir from './getHomeDir.js'; import { join } from 'path'; -import { readdirSync } from 'fs'; export default async (release) => { const asset = getAsset(release.assets); const path = join(getHomeDir(), '.bun', 'bin', asset.name); - console.log(path); const cache = find('bun', release.version) || await restoreCache([path], `bun-${process.platform}-${asset.name}-${release.version}`); if (cache) { info(`Using cached Bun installation from ${cache}.`); - console.log(path); - console.log(readdirSync(path)); addPath(path); return; } diff --git a/src/utils/install.ts b/src/utils/install.ts index 1293331..eb0f4e2 100644 --- a/src/utils/install.ts +++ b/src/utils/install.ts @@ -5,17 +5,13 @@ import { addPath, info } from '@actions/core'; import getAsset from './getAsset.js'; import getHomeDir from './getHomeDir.js'; import { join } from 'path'; -import { readdirSync } from 'fs'; export default async(release: Release) => { const asset = getAsset(release.assets); const path = join(getHomeDir(), '.bun', 'bin', asset.name); - console.log(path); const cache = find('bun', release.version) || await restoreCache([path], `bun-${process.platform}-${asset.name}-${release.version}`); if (cache) { info(`Using cached Bun installation from ${cache}.`); - console.log(path); - console.log(readdirSync(path)); addPath(path); return; }