Skip to content

Commit 9ae4d3a

Browse files
committed
Add GitHub Actions to run tests
1 parent 3c10768 commit 9ae4d3a

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu-latest, macos-latest]
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Install fish (Linux)
18+
if: runner.os == 'Linux'
19+
run: sudo apt-get update && sudo apt-get install -y fish
20+
21+
- name: Install fish (macOS)
22+
if: runner.os == 'macOS'
23+
run: brew install fish
24+
25+
- name: Install fish-spec
26+
run: git clone --depth 1 https://github.com/oh-my-fish/oh-my-fish.git "$HOME/omf"
27+
28+
- name: Run tests
29+
run: fish -c 'source $HOME/omf/pkg/fish-spec/functions/fish-spec.fish; fish-spec'

0 commit comments

Comments
 (0)