-
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (59 loc) · 1.56 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
workflow_dispatch:
jobs:
syntax:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install fish shell
uses: fish-actions/install-fish@v1
- name: Syntax check fish files
uses: fish-shop/syntax-check@v1
tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- 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@v1
- name: Install pond
uses: fish-shop/install-plugin@v2
with:
plugin-manager: fisher
plugins: (pwd)
- name: Run Fishtape tests
uses: fish-shop/run-fishtape-tests@v1
with:
pattern: tests/**.fish
install:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
plugin-manager: [fisher, oh-my-fish, plug.fish]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install fish shell
uses: fish-actions/install-fish@v1
- name: Install pond using ${{ matrix.plugin-manager }}
uses: fish-shop/install-plugin@v2
with:
plugin-manager: ${{ matrix.plugin-manager }}
plugins: (pwd)
- name: Check pond is installed
run: functions -q pond
shell: fish {0}