Skip to content

Merge pull request #229 from marcransome/add-show-option #469

Merge pull request #229 from marcransome/add-show-option

Merge pull request #229 from marcransome/add-show-option #469

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
workflow_dispatch:
jobs:
indentation:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Install fish shell
uses: fish-shop/install-fish-shell@9d15b8c062c2638df23b16fbde59fe762994d205 # v1.0.21
- name: Check indentation
uses: fish-shop/indent-check@ad68e945613226f3be153be29e158bc4fd3544ab # v1.0.7
syntax:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Install fish shell
uses: fish-shop/install-fish-shell@9d15b8c062c2638df23b16fbde59fe762994d205 # v1.0.21
- name: Syntax check fish files
uses: fish-shop/syntax-check@c8b57bb47e5745507abd0ccc852498e44a13e9a2 # v2.2.8
tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Fetch repository history for access to tags in tests
run: git fetch --prune --unshallow --tags --force
- name: Install fish shell
uses: fish-shop/install-fish-shell@9d15b8c062c2638df23b16fbde59fe762994d205 # v1.0.21
- name: Install pond
uses: fish-shop/install-plugin@cfdde30eca7fa5915f0698cf542a7af5ae54d732 # v2.3.10
with:
plugin-manager: fisher
plugins: ${{ github.workspace }}
- name: Run Fishtape tests
uses: fish-shop/run-fishtape-tests@4cbe2c23a6d1e16c2590675012dcddf1e130f7f1 # v2.3.8
with:
patterns: tests/**.fish
install:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
plugin-manager: [fisher, oh-my-fish]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Install fish shell
uses: fish-shop/install-fish-shell@9d15b8c062c2638df23b16fbde59fe762994d205 # v1.0.21
- name: Install pond using ${{ matrix.plugin-manager }}
uses: fish-shop/install-plugin@cfdde30eca7fa5915f0698cf542a7af5ae54d732 # v2.3.10
with:
plugin-manager: ${{ matrix.plugin-manager }}
plugins: ${{ github.workspace }}
- name: Check pond is installed
run: functions -q pond
shell: fish {0}