summaryrefslogtreecommitdiff
path: root/.config/shells/zsh/plugins/fzf-tab/.github/workflows/ci.yaml
blob: 893f8a450d9e85b5d21fb455d92aca3eb54dc4d2 (plain)
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
name: ci

on:
  pull_request:
  push:
    branches:
      - master

jobs:
  test:
    name: run test
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]
    steps:
      - name: checkout
        uses: actions/checkout@v1
        with:
          fetch-depth: 1

      - name: install zsh (ubuntu)
        if: matrix.os == 'ubuntu-latest'
        run: sudo apt-get install zsh

      - name: test completion (ubuntu)
        if: matrix.os == 'ubuntu-latest'
        run: cd test && zsh -f runtests.zsh fzftab.ztst

      - name: build binary module
        run: zsh -fc 'source ./fzf-tab.zsh && build-fzf-tab-module'

      - name: test binary module (ubuntu)
        if: matrix.os == 'ubuntu-latest'
        run: cd test && zsh -f runtests.zsh fzftab.ztst