Fork of mise-action for forgejo
Find a file
renovate[bot] 000b81f619
Some checks failed
Check dist/ / Check dist/ (push) Failing after 15s
Continuous Integration / TypeScript Tests (push) Successful in 13s
build-test / test (ubuntu-latest) (push) Successful in 3s
build-test / build (push) Failing after 10s
build-test / specific_version (push) Successful in 9s
CodeQL / Analyze (push) Failing after 18s
build-test / test (macos-latest) (push) Has been cancelled
build-test / test (windows-latest) (push) Has been cancelled
chore(deps): update dependency prettier to v3.5.2 (#4)
Reviewed-on: #4
Co-authored-by: renovate[bot] <renovate@rgst.io>
Co-committed-by: renovate[bot] <renovate@rgst.io>
2025-02-28 21:14:28 +00:00
.github fix: renovate artifact updates 2024-10-25 09:03:56 -05:00
.husky chore(deps): lock file maintenance (#102) 2024-07-29 18:40:29 +00:00
dist feat: add github_token 2025-01-25 21:54:07 -08:00
scripts feat: support windows (#122) 2024-09-25 21:27:52 +00:00
src chore: pretty 2025-01-25 21:56:55 -08:00
.eslintrc.yml feat: support windows (#122) 2024-09-25 21:27:52 +00:00
.gitattributes updated action template base from actions/typescript-action (#170) 2023-10-16 19:18:57 -05:00
.gitignore updated action template base from actions/typescript-action (#170) 2023-10-16 19:18:57 -05:00
.prettierignore updated action template base from actions/typescript-action (#170) 2023-10-16 19:18:57 -05:00
.prettierrc.json updated action template base from actions/typescript-action (#170) 2023-10-16 19:18:57 -05:00
action.yml feat: add github_token 2025-01-25 21:54:07 -08:00
CHANGELOG.md 2.1.11 2024-12-30 10:44:47 -06:00
cliff.toml chore: migrate away from deprecated git-cliff syntax 2024-09-25 16:34:56 -05:00
CODEOWNERS jdxcode -> jdx 2023-08-27 12:12:44 -05:00
eslint.config.mjs chore: updated deps 2024-11-27 18:10:51 -06:00
LICENSE Initial commit 2023-01-14 08:11:40 -06:00
mise.toml chore: loosen node version 2024-12-23 11:40:23 -08:00
package-lock.json chore(deps): update dependency prettier to v3.5.2 (#4) 2025-02-28 21:14:28 +00:00
package.json chore(deps): update dependency @types/eslint__js to v9 (#5) 2025-02-28 21:14:19 +00:00
README.md docs: restore estranged comment for tool_versions (#164) 2025-01-08 16:33:55 -06:00
tsconfig.json updated action template base from actions/typescript-action (#170) 2023-10-16 19:18:57 -05:00

Example Workflow

name: test
on:
  pull_request:
    branches:
      - main
  push:
    branches:
      - main
jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: jdx/mise-action@v2
        with:
          version: 2024.10.0 # [default: latest] mise version to install
          install: true # [default: true] run `mise install`
          install_args: "bun" # [default: ""] additional arguments to `mise install`
          cache: true # [default: true] cache mise using GitHub's cache
          experimental: true # [default: false] enable experimental features
          log_level: debug # [default: info] log level
          # automatically write this .tool-versions file
          tool_versions: |
            shellcheck 0.9.0
          # or, if you prefer .mise.toml format:
          mise_toml: |
            [tools]
            shellcheck = "0.9.0"
          working_directory: app # [default: .] directory to run mise in
      - run: shellcheck scripts/*.sh
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: jdx/mise-action@v2
      # .tool-versions will be read from repo root
      - run: node ./my_app.js

Alternatively, mise is easy to use in GitHub Actions even without this:

jobs:
  build:
    steps:
    - run: |
        curl https://mise.run | sh
        echo "$HOME/.local/share/mise/bin" >> $GITHUB_PATH
        echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH