-
Notifications
You must be signed in to change notification settings - Fork 83
68 lines (51 loc) · 1.5 KB
/
continuous_integration.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
60
61
62
63
64
65
66
67
68
name: CI
on:
push:
branches: [main]
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: fish-actions/[email protected]
- uses: fish-actions/fisher@v1
with:
plugins: jorgebucaran/fishtape ilancosman/clownfish $GITHUB_WORKSPACE
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
# Homebrew is only missing from ubuntu images per https://github.com/actions/runner-images/issues/6283
if: matrix.os == 'ubuntu-latest'
- name: Install fzf and fd
run: brew install fzf fd
- name: Run full test suite
run: fishtape tests/*/*.fish
shell: fish {0}
# timeout in case tests get stuck on fzf
timeout-minutes: 3
syntax-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fish-actions/install-fish@v1
- uses: fish-actions/syntax-check@v1
# check Fish format
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fish-actions/install-fish@v1
- uses: fish-actions/format-check@v1
# check Markdown and Yaml format
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actionsx/prettier@v3
with:
args: --check .