Is it possible to have Github Actions for Elixir with Windows?

Background

I have GithubActions script that tries to do some basic setup for Elixir using a Windows system. The reason I need it to be windows is because I am releasing for Windows.

Problem

So the start of my script is as simple as I could make it:

name: build

env:
  MIX_ENV: test
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:

  build:
    name: Build on Windows
    runs-on: windows-latest

    steps:
    - uses: actions/checkout@v2
    - name: Setup elixir
      uses: actions/setup-elixir@v1
      with:
        elixir-version: '1.13.x' # Define the elixir version [required]
        otp-version: '24.2.x' # Define the OTP version [required]
    
    - name: Install Dependencies
      run: mix deps.get
    
    - name: Run credo code analyser
      run: mix credo --strict

However, the run fails:

Questions

  1. Am I doing something wrong?
  2. Is it possible to have a GitHub Action that runs Elixir in Windows?
  3. If not, how can I test my code in GitHub Actions while making sure it would also work for Windows?

This one supports windows based on the readme.

1 Like