forked from jhawthorn/fzy
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (62 loc) · 1.66 KB
/
test.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: CI
on: [push, pull_request]
jobs:
test:
name: Test ${{ matrix.compiler }} on ${{ matrix.os }}
strategy:
matrix:
compiler: [gcc, clang]
os: [ubuntu-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Compile and run tests
run: make && make test
env:
CC: ${{ matrix.compiler }}
test_alpine:
name: Test on Alpine Linux
runs-on: ubuntu-latest
container: docker://alpine
steps:
- uses: actions/checkout@v2
- name: Install build dependencies
run: apk add build-base
- name: Compile and run tests
run: make && make test
multiarch_test:
name: Test on ${{ matrix.arch }}
strategy:
matrix:
arch: [armv7, aarch64, s390x, ppc64le]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: uraimo/[email protected]
name: Compile and run tests
id: test
with:
arch: ${{ matrix.arch }}
distro: ubuntu20.04
githubToken: ${{ github.token }}
install: |
apt-get update -q -y
apt-get install -y gcc make
rm -rf /var/lib/apt/lists/*
run: make && make test
acceptance_test:
name: Acceptance Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Install dependencies and compile
run: |
gem install bundler
make
cd test/acceptance && bundle install --jobs 4 --retry 3
- name: Run acceptance tests
run: make acceptance