mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-12-05 00:03:44 +08:00
57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
name: Build
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- '**.md'
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
- ubuntu-18.04
|
|
- ubuntu-20.04
|
|
- ubuntu-latest
|
|
fish:
|
|
- stock
|
|
- 2
|
|
- 3
|
|
- brew
|
|
exclude:
|
|
- os: ubuntu-20.04
|
|
fish: 2
|
|
- os: ubuntu-latest
|
|
fish: 2
|
|
include:
|
|
- os: macos-latest
|
|
fish: brew
|
|
- os: macos-11
|
|
fish: brew
|
|
- os: macos-12
|
|
fish: brew
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Add brew to path for Ubuntu
|
|
if: startsWith(matrix.os, 'ubuntu') && matrix.fish == 'brew'
|
|
run: |
|
|
echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH
|
|
echo "/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
|
|
|
|
- name: Install Fish
|
|
run: FISH_RELEASE=${{ matrix.fish }} tools/ci-install-fish.sh
|
|
|
|
- name: Install Oh My Fish!
|
|
run: fish bin/install --verbose --offline --noninteractive --yes
|
|
|
|
- name: Run tests
|
|
run: |
|
|
tests/run.fish
|
|
pushd pkg/fish-spec; fish -c 'fish-spec'; popd
|
|
pushd pkg/omf; fish -c 'fish-spec'; popd
|