fix: make compatible with v5 and v7 #2438
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: | |
| push: | |
| paths: | |
| - "**" | |
| - "!**.md" | |
| pull_request: | |
| paths: | |
| - "**" | |
| - "!**.md" | |
| workflow_dispatch: | |
| jobs: | |
| all_tests: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: linux | |
| runs-on: ubuntu-24.04 | |
| arch: x86-64 | |
| - os: macos | |
| runs-on: macos-13 | |
| arch: x86-64 | |
| - os: windows | |
| runs-on: windows-2022 | |
| arch: x86-64 | |
| name: "${{ matrix.os }}-${{ matrix.arch }}" | |
| runs-on: ${{ matrix.runs-on }} | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 | |
| - name: Configure the git user # Required to create a commit in our binary tests | |
| run: | | |
| git config --global user.email "66069679+exercism-bot@users.noreply.github.com" | |
| git config --global user.name "Exercism Bot" | |
| - name: On Linux, install musl | |
| if: matrix.os == 'linux' | |
| run: ./.github/bin/linux-install-musl | |
| - name: Install Nim | |
| uses: iffy/install-nim@cceb6b4d10dcb1968575ac083d4981c0302fd00d | |
| with: | |
| version: "binary:2.2.4" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install our Nimble dependencies | |
| run: nimble --accept install --depsOnly | |
| - name: Run our test suite | |
| run: nimble test |