-
-
Notifications
You must be signed in to change notification settings - Fork 49
43 lines (32 loc) · 964 Bytes
/
tests.yml
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
name: Tests
on: ['push', 'pull_request']
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
compiler: [clang, gcc]
name: ${{ matrix.os }} (${{ matrix.compiler }})
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Dependencies (Linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt update -qq
sudo apt install -qq libcurl4-openssl-dev libzip-dev pkg-config
- name: Install Dependencies (MacOS)
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew update
brew install curl libzip
- name: Compile
run: make V=1 DEBUG= CC=${{ matrix.compiler }} LD=${{ matrix.compiler }}
- name: Test printing tldr version
run: ./tldr --version
- name: Test printing tldr list
run: ./tldr --list
- name: Test printing tldr page
run: ./tldr tar