-
-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (54 loc) · 1.59 KB
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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