-
Notifications
You must be signed in to change notification settings - Fork 132
80 lines (75 loc) · 2.24 KB
/
ci.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
69
70
71
72
73
74
75
76
77
78
79
80
# yamllint disable rule:braces
# yamllint disable rule:indentation
---
name: Run tests on CI
# yamllint disable-line rule:truthy
on:
push:
branches:
- master
paths:
- "**.fish"
- ".github/**/*.yml"
- "!conf.d/pure.fish"
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
paths:
- "**.fish"
- ".github/**/*.yml"
jobs:
test-container:
name: Test on fish ${{ matrix.version.fish }} on Docker
runs-on: ubuntu-latest
strategy:
matrix:
version: [
{ fish: 3.0.2, alpine: 3.11 },
{ fish: 3.1.2, alpine: 3.13 },
{ fish: 3.2.2, alpine: 3.14 },
{ fish: 3.3.1, alpine: 3.15 },
{ fish: 3.4.1, alpine: 3.16 },
{ fish: 3.5.1, alpine: 3.17 },
{ fish: 3.6.1, alpine: 3.18 },
# { fish: 3.6.2, alpine: 'edge' },
]
steps:
- uses: actions/checkout@v2
- run: make build-pure-on FISH_VERSION=${{ matrix.version.fish }}
- run: docker --version
- run: make test-pure-on FISH_VERSION=${{ matrix.version.fish }}
test-nixos:
name: Test `pure` with Fish ${{ matrix.version.fish }} on NixOS container
runs-on: ubuntu-latest
strategy:
matrix:
version: [
{ fish: 3.6.1, alpine: 3.18 },
# { fish: 3.6.2, alpine: 'edge' },
]
steps:
- uses: actions/checkout@v2
- run: make build-pure-on-nix FISH_VERSION=${{ matrix.version.fish }}
- run: docker --version
- run: make test-pure-on-nix FISH_VERSION=${{ matrix.version.fish }}
# test-macos:
# name: Test on fish on MacOS
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v2
# - name: Install Fish
# run: brew install fish
# - name: Install Fisher > Fishtape > Pure
# run: curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher jorgebucaran/fishtape ./
# shell: fish {0}
# - name: Test Pure
# run: fishtape tests/*.test.fish
# shell: fish {0}
bump-version: # Bump when on master
needs: [test-container]
if: contains(github.ref, 'master')
uses: ./.github/workflows/bump-version.yml
secrets: inherit