docs: add Tests workflow badge to README #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- synchronize | |
- reopened | |
workflow_dispatch: | |
jobs: | |
run_tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
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-3 | |
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} |