Skip to content

A Github Action to install runtimes by asdf CLI with a cache

Notifications You must be signed in to change notification settings

codeur/setup-asdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

asdf cache action

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.


Full Example

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

Inputs

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-versionsfile 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

Release

Update the VERSION file and run bin/release to create tags for given version.

echo 1.0.2 > VERSION
bin/release

About

A Github Action to install runtimes by asdf CLI with a cache

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%