This repository has been archived by the owner. It is now read-only.

action-parse-asdf-tool-versions v3

Parse asdf .tool-versions in Github actions

action-parse-asdf-tool-versions

CI - Itself CI - Test

  • This repository is archived
  • No longer maintained

Parse asdf .tool-versions and outputs with JSON for preparing GitHub Actions
Tested on ubuntu-latest and macos-latest.

Usage

Specify the path if you want. If not, .tool-versions will given

jobs:
  asdf-parser:
    runs-on: ubuntu-latest
    timeout-minutes: 5
    steps:
      - uses: actions/checkout@v3
      - uses: kachick/action-parse-asdf-tool-versions@v3
        id: parse
        # with:
        #   # default '.tool-versions'
        #   tool-versions-path: 'asdf-managed-dir/.tool-versions'
    outputs:
      tool-versions: "${{ steps.parse.outputs.json }}"
  test:
    needs: [asdf-parser]
    timeout-minutes: 15
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: "${{ fromJson(needs.asdf-parser.outputs.tool-versions).nodejs }}"
      - run: npm ci
      - run: npm test

Major setup-* actions provide input option as *-version. Use this action and pass to them keep consistency of repository's .tool-versions and CI.
Actual working examples are below.

Repository

action-parse-asdf-tool-versions

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • over 1 year ago
  • October 19, 2022
License

MIT License

Links
Synced at

Fri, 22 Nov 2024 08:00:55 GMT

Languages