A GitHub Action that install asdf
and all runtimes from .tool-versions
.
It is a wrapper for asdf-vm/actions/install
with a caches for asdf
.
- name: Install tools from asdf config
uses: codeur/setup-asdf@v1
Made at Evil Martians, product consulting for developer tools.
name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install tools from asdf config
uses: codeur/setup-asdf@v1
- name: Run tests
run: pnpm test
You can uses inputs to specify explicitly versions to use. Be careful, for now,
you must specify both ruby-version
and nodejs-version
if you want to use them.
A .tool-versions
file is written by action before running asdf install
.
- name: Install tools from asdf config
uses: codeur/setup-asdf@v1
with:
ruby-version: 3.1
nodejs-version: 20
Update the VERSION file and run bin/release
to create tags for given version.
echo 1.0.2 > VERSION
bin/release