mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-25 09:41:40 +08:00
be7e05bf46
This is somehow useless as secrets are not passed to action runners when the workflow is triggered from a forked repository (for obvious reasons)
44 lines
1021 B
YAML
44 lines
1021 B
YAML
name: Build
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
- ubuntu-16.04
|
|
- 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-10.15
|
|
fish: brew
|
|
- os: macos-latest
|
|
fish: brew
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@v2
|
|
|
|
- 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
|