Skip to content

Commit

Permalink
feat: support .tool-versions (#68)
Browse files Browse the repository at this point in the history
* feat: support .tool-versions

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
xHyroM and autofix-ci[bot] committed Apr 2, 2024
1 parent 194c60e commit 9e64795
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 26 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,34 @@ jobs:
echo "Expected version to be 1.0.0, got ${{ steps.bun.outputs.version }}"
exit 1
fi
setup-bun-from-tool-versions:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
content:
- "bun 1.0.0"
- "bun1.0.0"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup package.json
run: |
echo "bun ${{ matrix.content }}" > .tool-versions
- name: Setup Bun
uses: ./
- name: Run Bun
id: bun
run: |
bun --version
echo "version=$(bun --version)" >> $GITHUB_OUTPUT
- name: Check version
run: |
if [[ "${{ steps.bun.outputs.version }}" == "1.0.0" ]]; then
echo "Version is 1.0.0"
else
echo "Expected version to be 1.0.0, got ${{ steps.bun.outputs.version }}"
exit 1
fi
Loading

0 comments on commit 9e64795

Please sign in to comment.