feat: support windows (#122)

This commit is contained in:
jdx 2024-09-25 16:27:52 -05:00 committed by GitHub
parent bd6a003a27
commit 5d3e058edf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 3835 additions and 3537 deletions

View file

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

View file

@ -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]