Skip to content

fix(make): exclude makefile variable from completion and handle multiple targets in a rule #561

fix(make): exclude makefile variable from completion and handle multiple targets in a rule

fix(make): exclude makefile variable from completion and handle multiple targets in a rule #561

Workflow file for this run

name: CI Workflow
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Unit Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
- os: ubuntu-latest
awk: gawk
- os: ubuntu-latest
awk: mawk
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install Zsh
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
sudo apt-get update
sudo apt-get install -y zsh
- name: Switch awk variant
if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.awk }}
run: |
sudo update-alternatives --set awk /usr/bin/${{ matrix.awk }}
- name: Show versions
run: |
tests/versions.zsh
- name: Run unit tests
run: |
tests/test.zsh --tap --time-limit 30 tests/*.zunit
test-container:
name: Unit Tests (Container)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- image: ubuntu-16.04
awk: gawk
- image: ubuntu-16.04
awk: mawk
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build image
id: build
uses: docker/build-push-action@v6
with:
context: tests/_dockerfiles/${{ matrix.image }}
load: true
build-args: |
AWK=${{ matrix.awk }}
- name: Show versions
run: |
docker run \
--rm \
--env=GITHUB_ACTIONS \
--mount=type=bind,source=$(pwd),destination=/fzf-zsh-completions \
--workdir=/fzf-zsh-completions \
'${{ steps.build.outputs.imageid }}' \
tests/versions.zsh
- name: Run unit tests
run: |
docker run \
--rm \
--mount=type=bind,source=$(pwd),destination=/fzf-zsh-completions \
--workdir=/fzf-zsh-completions \
'${{ steps.build.outputs.imageid }}' \
tests/test.zsh --tap --time-limit 30 tests/*.zunit