Skip to content

Add fish shell version 4 to test workflow #11

Add fish shell version 4 to test workflow

Add fish shell version 4 to test workflow #11

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
workflow_dispatch:
jobs:
run_tests:
name: Run tests (Fish ${{ matrix.fish-version }})
runs-on: ubuntu-latest
strategy:
matrix:
fish-version: [3, 4]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Fish
run: |
sudo apt-add-repository -yn ppa:fish-shell/release-${{ matrix.fish-version }}
sudo apt-get update
sudo apt-get install -y fish
- name: Install Fisher
run: |
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
shell: fish {0}
- name: Install Tools
run: fisher install jorgebucaran/fishtape
shell: fish {0}
- name: Run tests
run: fishtape tests/*.fish
shell: fish {0}