Skip to content

Pin action versions using hash #272

Pin action versions using hash

Pin action versions using hash #272

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
workflow_dispatch:
jobs:
syntax:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Install fish shell
uses: fish-actions/install-fish@d6d9d26231a15f8d9a6b3e74b3db45512440e3e8 # v1.1.0
- name: Syntax check fish files
uses: fish-shop/syntax-check@v1
tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Fetch repository history for access to tags in tests
run: git fetch --prune --unshallow --tags --force
- name: Install fish shell
uses: fish-actions/install-fish@d6d9d26231a15f8d9a6b3e74b3db45512440e3e8 # v1.1.0
- name: Install pond
uses: fish-shop/install-plugin@edc7c38b322254439399b061679e7d890574169b # v2.1.1
with:
plugin-manager: fisher
plugins: (pwd)
- name: Run Fishtape tests
uses: fish-shop/run-fishtape-tests@f4e082b2008a91575df5edc72b17cf38d75ea52e # v1.4.1
with:
pattern: 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@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Install fish shell
uses: fish-actions/install-fish@d6d9d26231a15f8d9a6b3e74b3db45512440e3e8 # v1.1.0
- name: Install pond using ${{ matrix.plugin-manager }}
uses: fish-shop/install-plugin@edc7c38b322254439399b061679e7d890574169b # v2.1.1
with:
plugin-manager: ${{ matrix.plugin-manager }}
plugins: (pwd)
- name: Check pond is installed
run: functions -q pond
shell: fish {0}