Skip to content

Commit 7701395

Browse files
committed
make: add github actions workflow for tests
1 parent bb88026 commit 7701395

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/tests.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
types:
11+
- opened
12+
- synchronize
13+
- reopened
14+
workflow_dispatch:
15+
16+
jobs:
17+
run_tests:
18+
name: Run tests
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Install Fish
27+
run: |
28+
sudo apt-add-repository -yn ppa:fish-shell/release-3
29+
sudo apt-get update
30+
sudo apt-get install -y fish
31+
32+
- name: Install Fisher
33+
run: |
34+
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
35+
shell: fish {0}
36+
37+
- name: Install Tools
38+
run: fisher install jorgebucaran/fishtape
39+
shell: fish {0}
40+
41+
- name: Run tests
42+
run: fishtape tests/*.fish
43+
shell: fish {0}

0 commit comments

Comments
 (0)