mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 05:17:11 -07:00
Merge branch 'dev'
# Conflicts: # README.md
This commit is contained in:
commit
09607e310b
21 changed files with 663 additions and 169 deletions
30
.github/workflows/release.yml
vendored
Normal file
30
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: "Create Release"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Is pre-release?
|
||||
id: is_pre_release
|
||||
run: |
|
||||
version="${GITHUB_REF#refs/tags/}"
|
||||
if [[ "${version}" =~ -.*$ ]]; then
|
||||
echo ::set-output name=IS_PRERELEASE::true
|
||||
else
|
||||
echo ::set-output name=IS_PRERELEASE::false
|
||||
fi
|
||||
- name: Release
|
||||
uses: docker://antonyurchenko/git-release:v3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
DRAFT_RELEASE: "false"
|
||||
PRE_RELEASE: ${{ steps.is_pre_release.outputs.IS_PRERELEASE }}
|
||||
CHANGELOG_FILE: "CHANGELOG.md"
|
||||
ALLOW_EMPTY_CHANGELOG: "false"
|
||||
ALLOW_TAG_PREFIX: "true"
|
102
.github/workflows/test.yml
vendored
Normal file
102
.github/workflows/test.yml
vendored
Normal file
|
@ -0,0 +1,102 @@
|
|||
name: Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: "Scenarios"
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- 'ubuntu-latest'
|
||||
- 'macos-latest'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# NB: We have a Docker setup for testing -- why do all this?
|
||||
# Because we want to confirm it runs on macOS, and
|
||||
# there are no Docker images based on frickin' macOS.
|
||||
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 2.7
|
||||
|
||||
- name: Install Test Dependencies
|
||||
working-directory: test
|
||||
run: |
|
||||
gem install bundler
|
||||
bundle install
|
||||
|
||||
- name: Install SDKMAN!
|
||||
run: |
|
||||
curl -s "https://get.sdkman.io" | bash
|
||||
source "$HOME/.sdkman/bin/sdkman-init.sh"
|
||||
sdk version
|
||||
|
||||
- name: Install fish
|
||||
uses: fish-actions/install-fish@v1.1.0
|
||||
|
||||
- name: Install sdkman-for-fish
|
||||
shell: fish "{0}"
|
||||
run: |
|
||||
fish --version
|
||||
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source \
|
||||
&& fisher install jorgebucaran/fisher
|
||||
fisher install .
|
||||
|
||||
- name: Confirm install
|
||||
shell: fish "{0}"
|
||||
run: |
|
||||
cat /etc/os-release || sw_vers || true
|
||||
fish --version
|
||||
fisher --version
|
||||
sdk version
|
||||
|
||||
- name: Run Tests
|
||||
working-directory: test
|
||||
run: |
|
||||
cucumber --publish-quiet --tags "not @pending"
|
||||
|
||||
confirm-installation:
|
||||
name: "Check fisher install"
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- 'ubuntu-22.04'
|
||||
- 'macos-latest'
|
||||
steps:
|
||||
- name: Install fish
|
||||
uses: fish-actions/install-fish@v1.1.0
|
||||
|
||||
- name: Install SDKMAN!
|
||||
run: |
|
||||
curl -s "https://get.sdkman.io" | bash
|
||||
|
||||
- name: Install fisher
|
||||
shell: fish "{0}"
|
||||
run: |
|
||||
fish --version
|
||||
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source \
|
||||
&& fisher install jorgebucaran/fisher
|
||||
fisher --version
|
||||
|
||||
- name: Install sdkman-for-fish
|
||||
shell: fish "{0}"
|
||||
run: |
|
||||
fisher install reitzig/sdkman-for-fish@${{ github.sha }}
|
||||
|
||||
- name: Confirm install
|
||||
shell: fish "{0}"
|
||||
run: |
|
||||
cat /etc/os-release || sw_vers || true
|
||||
fish --version
|
||||
fisher ls
|
||||
sdk version
|
Loading…
Add table
Add a link
Reference in a new issue