Skip to content

Use clj-msi to install ClojureCLI on Windows #350

Use clj-msi to install ClojureCLI on Windows

Use clj-msi to install ClojureCLI on Windows #350

Workflow file for this run

name: Smoke tests
on: [push]
jobs:
# Deprecated version identifier
# Please use `cli: version` as in job `clojure-cli`
# test-tools-deps:
# strategy:
# matrix:
# os: [ubuntu-latest, macOS-latest, windows-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Checkout
# uses: actions/checkout@main
# - name: Prepare java
# uses: actions/setup-java@v3
# with:
# distribution: "zulu"
# java-version: "8"
# - name: Install clojure tools-deps
# uses: ./
# with:
# tools-deps: 1.11.4.1474
# invalidate-cache: true
# - name: Execute clojure code
# run: clojure -e "(+ 1 1)"
test-clojure-cli:
strategy:
matrix:
# os: [ubuntu-latest, macOS-latest, windows-latest]
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@main
- name: Prepare java
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "8"
- name: Install Clojure CLI
uses: ./
with:
cli: 1.11.4.1474
invalidate-cache: true
- name: Execute clojure code
run: clojure -e "(+ 1 1)"
test-clojure-cli-latest:
strategy:
matrix:
# os: [ubuntu-latest, macOS-latest, windows-latest]
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@main
- name: Prepare java
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "8"
- name: Install Clojure CLI
uses: ./
with:
cli: latest
invalidate-cache: true
- name: Execute clojure code
run: clojure -e "(+ 1 1)"
# test-leiningen:
# strategy:
# matrix:
# os: [ubuntu-latest, macOS-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Checkout
# uses: actions/checkout@main
# - name: Prepare java
# uses: actions/setup-java@v3
# with:
# distribution: "zulu"
# java-version: "8"
# - name: Install leiningen
# uses: ./
# with:
# lein: 2.9.1
# invalidate-cache: true
# github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Check leiningen version
# run: lein version
# test-leiningen-windows:
# runs-on: windows-latest
# steps:
# - name: Checkout
# uses: actions/checkout@main
# - name: Prepare java
# uses: actions/setup-java@v3
# with:
# distribution: "zulu"
# java-version: "8"
# - name: Install leiningen
# uses: ./
# with:
# lein: latest
# invalidate-cache: true
# - name: lein powershell
# shell: powershell
# run: |
# lein version
# - name: lein cmd
# shell: cmd
# run: |
# lein version
# test-boot:
# strategy:
# matrix:
# os: [ubuntu-latest, macOS-latest, windows-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Checkout
# uses: actions/checkout@main
# - name: Prepare java
# uses: actions/setup-java@v3
# with:
# distribution: "zulu"
# java-version: "11"
# - name: Install boot
# uses: ./
# with:
# boot: 2.8.3
# invalidate-cache: true
# github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Check boot version
# run: boot -V
# test-bb:
# strategy:
# matrix:
# os: [ubuntu-latest, macOS-latest, windows-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Checkout
# uses: actions/checkout@main
# - name: Prepare java
# uses: actions/setup-java@v3
# with:
# distribution: "zulu"
# java-version: "8"
# - name: Install babashka
# uses: ./
# with:
# bb: latest
# invalidate-cache: true
# github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Check babashka version
# run: bb --version
# test-clj-kondo:
# strategy:
# matrix:
# os: [ubuntu-latest, macOS-latest, windows-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Checkout
# uses: actions/checkout@main
# - name: Prepare java
# uses: actions/setup-java@v3
# with:
# distribution: "zulu"
# java-version: "8"
# - name: Install clj-kondo
# uses: ./
# with:
# clj-kondo: latest
# invalidate-cache: true
# github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Check clj-kondo version
# run: clj-kondo --version
# test-cljfmt:
# strategy:
# matrix:
# os: [ubuntu-latest, macOS-latest, windows-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Checkout
# uses: actions/checkout@main
# - name: Prepare java
# uses: actions/setup-java@v3
# with:
# distribution: "zulu"
# java-version: "8"
# - name: Install cljfmt
# uses: ./
# with:
# cljfmt: latest
# invalidate-cache: true
# github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Check cljfmt version
# run: cljfmt --version
# test-cljstyle:
# strategy:
# matrix:
# os: [ubuntu-latest, macOS-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Checkout
# uses: actions/checkout@main
# - name: Prepare java
# uses: actions/setup-java@v3
# with:
# distribution: "zulu"
# java-version: "8"
# - name: Install cljstyle
# uses: ./
# with:
# cljstyle: latest
# invalidate-cache: true
# github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Check cljstyle version
# run: cljstyle version
# test-zprint:
# strategy:
# matrix:
# os: [ubuntu-latest, macOS-latest, windows-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Checkout
# uses: actions/checkout@main
# - name: Prepare java
# uses: actions/setup-java@v3
# with:
# distribution: "zulu"
# java-version: "8"
# - name: Install zprint
# uses: ./
# with:
# zprint: latest
# invalidate-cache: true
# github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Check zprint version
# run: zprint --version
# all-together:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@main
# - name: Prepare java
# uses: actions/setup-java@v3
# with:
# distribution: "zulu"
# java-version: "8"
# - name: Install all the tools
# uses: ./
# with:
# cli: 1.11.4.1474
# lein: 2.11.0
# boot: 2.8.3
# bb: 0.8.157
# clj-kondo: 2022.06.22
# cljstyle: 0.16.626
# zprint: 1.2.3
# invalidate-cache: true
# github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Check Clojure CLI
# run: clojure -Sdescribe
# - name: Check leiningen version
# run: lein version
# - name: Check boot version
# run: boot -V
# - name: Check babashka version
# run: bb --version
# - name: Check clj-kondo version
# run: clj-kondo --version
# - name: Check cljstyle version
# run: cljstyle version
# - name: Check zprint version
# run: zprint --version