fzy
terminal fuzzy finder picker
git clone https://9o.is/git/fzy.git
test.yml
(1652B)
1 name: CI
2
3 on: [push, pull_request]
4
5 jobs:
6 test:
7 name: Test ${{ matrix.compiler }} on ${{ matrix.os }}
8 strategy:
9 matrix:
10 compiler: [gcc, clang]
11 os: [ubuntu-latest, macOS-latest]
12 runs-on: ${{ matrix.os }}
13 steps:
14 - uses: actions/checkout@v4
15 - name: Compile and run tests
16 run: make && make test
17 env:
18 CC: ${{ matrix.compiler }}
19 test_alpine:
20 name: Test on Alpine Linux
21 runs-on: ubuntu-latest
22 container: docker://alpine
23 steps:
24 - uses: actions/checkout@v4
25 - name: Install build dependencies
26 run: apk add build-base
27 - name: Compile and run tests
28 run: make && make test
29 multiarch_test:
30 name: Test on ${{ matrix.arch }}
31 strategy:
32 matrix:
33 arch: [armv7, aarch64, s390x, ppc64le]
34 runs-on: ubuntu-22.04
35 steps:
36 - uses: actions/checkout@v4
37 - uses: uraimo/run-on-arch-action@v3.0.1
38 name: Compile and run tests
39 id: test
40 with:
41 arch: ${{ matrix.arch }}
42 distro: ubuntu22.04
43 githubToken: ${{ github.token }}
44 install: |
45 apt-get update -q -y
46 apt-get install -y gcc make
47 rm -rf /var/lib/apt/lists/*
48 run: make && make test
49 acceptance_test:
50 name: Acceptance Tests
51 runs-on: ubuntu-latest
52 steps:
53 - uses: actions/checkout@v4
54 - name: Set up Ruby
55 uses: ruby/setup-ruby@v1
56 with:
57 ruby-version: '3.4'
58 bundler-cache: true
59 working-directory: test/acceptance
60 - name: Compile fzy
61 run: |
62 make
63 - name: Run acceptance tests
64 run: make acceptance