Skip to content

Commit

Permalink
test: Disable old versions not supported in GH Actions, add macOS (#60)
Browse files Browse the repository at this point in the history
* Disable problematic Zsh versions

* Add Zsh 5.9, 5.8.1 and macOS
  • Loading branch information
mafredri committed Jan 5, 2023
1 parent a66d76f commit ee1d11b
Showing 1 changed file with 37 additions and 9 deletions.
46 changes: 37 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,54 @@
name: Test
on: [push, pull_request]
on:
push:
branches: [main]
pull_request:
workflow_dispatch:

jobs:
test:
macos:
name: macOS
strategy:
matrix:
os: [macos-12, macos-11]
runs-on: ${{matrix.os}}
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Run tests
timeout-minutes: 1
run: |
zsh --version
script -q <<<'zsh -if ./test.zsh -v; exit $?'
ubuntu:
name: Ubuntu
strategy:
matrix:
os: [ubuntu-latest]
zsh-version:
- "5.9"
- "5.8.1"
- "5.8"
- "5.7.1"
- "5.7"
- "5.6.2"
- "5.5.1"
- "5.4.2"
- "5.3.1"
- "5.3"
- "5.2"
- "5.1.1"
- "5.0.8"
# Can't make 5.0.2 work on GitHub Actions, missing signals.
# Too old to build/use on GitHub Actions (missing signals).
# - "5.3.1"
# - "5.3"
# - "5.2"
# - "5.1.1"
# - "5.0.8"
# - "5.0.2"
runs-on: ${{matrix.os}}
steps:
- name: Install deps
run: |
sudo apt-get install zsh
- name: Cache zsh
id: cache-zsh
uses: actions/cache@v2
Expand All @@ -44,7 +72,7 @@ jobs:
aclocal
autoconf
autoheader
./configure --prefix=/opt/zsh --without-tcsetpgrp
script -qec './configure --prefix=/opt/zsh'
make
sudo make install.bin install.modules install.fns
Expand Down

0 comments on commit ee1d11b

Please sign in to comment.