mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-14 22:00:34 +00:00
feat: support windows (#122)
This commit is contained in:
parent
bd6a003a27
commit
5d3e058edf
20 changed files with 3835 additions and 3537 deletions
53
.github/workflows/linter.yml
vendored
53
.github/workflows/linter.yml
vendored
|
|
@ -1,53 +0,0 @@
|
|||
name: Lint Code Base
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
push:
|
||||
branches-ignore:
|
||||
- main
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref_name }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint Code Base
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: read
|
||||
statuses: write
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
id: checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Node.js
|
||||
id: setup-node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
cache: npm
|
||||
|
||||
- name: Install Dependencies
|
||||
id: install
|
||||
run: npm ci
|
||||
|
||||
- name: Lint Code Base
|
||||
id: super-linter
|
||||
uses: super-linter/super-linter/slim@v6
|
||||
env:
|
||||
DEFAULT_BRANCH: main
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
TYPESCRIPT_DEFAULT_STYLE: prettier
|
||||
VALIDATE_CHECKOV: false
|
||||
VALIDATE_MARKDOWN: false
|
||||
VALIDATE_JSCPD: false
|
||||
VALIDATE_NATURAL_LANGUAGE: false
|
||||
26
.github/workflows/test.yml
vendored
26
.github/workflows/test.yml
vendored
|
|
@ -25,34 +25,36 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
tool_versions:
|
||||
- |
|
||||
nodejs 20
|
||||
- |
|
||||
nodejs 18
|
||||
- ubuntu-latest
|
||||
- windows-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./
|
||||
- name: Setup mise
|
||||
uses: ./
|
||||
with:
|
||||
tool_versions: ${{ matrix.tool_versions }}
|
||||
mise_toml: |
|
||||
[tools]
|
||||
node = "22.0.0"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- run: mise --version
|
||||
- run: mise exec -- node --version
|
||||
- run: mise x node -- node -v
|
||||
- run: which node
|
||||
- run: node -v
|
||||
- run: node --version
|
||||
- run: . scripts/test.sh
|
||||
shell: bash
|
||||
specific_version:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./
|
||||
- name: Setup mise
|
||||
uses: ./
|
||||
with:
|
||||
cache_save: ${{ github.ref_name == 'main' }}
|
||||
cache_key_prefix: mise-v1
|
||||
version: 2024.1.6
|
||||
version: 2024.9.6
|
||||
install_args: bun
|
||||
mise_toml: |
|
||||
[tools]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue