[CI] Drop unsupported MacOS versions #5
This file contains 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 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
TERM: xterm-256color | |
on: | |
pull_request: | |
branches: [ main, master ] | |
paths: | |
- 'tests/**' | |
- '.github/workflows/tests.yaml' | |
push: | |
branches: [ main, master ] | |
workflow_dispatch: | |
branches: [ main, master ] | |
jobs: | |
zunit-tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ['macos-12','ubuntu-20.04','ubuntu-22.04'] | |
fail-fast: true | |
steps: | |
- name: "Checkout ${{ github.repository }}" | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: "Setup Homebrew" | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: "Upgrade glibc" | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get clean && sudo apt-get update | |
sudo apt-get install \ | |
build-essential subversion \ | |
gcc gcc-multilib \ | |
glibc-source libc6 libc6-dev \ | |
musl musl-dev musl-tools | |
- name: "Install ZSH" | |
run: | | |
brew install ncurses svn unzip zsh | |
exec bash | |
echo "eval $(brew shellenv)" > .profile | |
- name: "Install Revolver" | |
run: | | |
curl -L https://raw.githubusercontent.com/molovo/revolver/master/revolver > /usr/local/bin/revolver | |
chmod u+x /usr/local/bin/revolver | |
- name: "Install ZUnit" | |
run: | | |
curl -L https://github.com/zunit-zsh/zunit/releases/download/v0.8.2/zunit > /usr/local/bin/zunit | |
chmod u+x /usr/local/bin/zunit | |
- name: "Run zunit" | |
run: zunit |