8000 ci: update pipeline tests · getnf/getnf@972b331 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ci: update pipeline tests #44

ci: update pipeline tests

ci: update pipeline tests #44

Workflow file for this run

name: Tests
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: Run tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install getnf
run: |
# Reset getnf installation if, for any reason, it was cached
[[ -d "${XDG_DATA_HOME:-$HOME/.local/share}/getnf" ]] && rm -rf "${XDG_DATA_HOME:-$HOME/.local/share}/getnf" || :
[[ -f "$HOME/.local/bin/getnf" ]] && rm -f "$HOME/.local/bin/getnf" || :
bash ${{ github.workspace }}/install.sh
test -f "$HOME/.local/bin/getnf"
$HOME/.local/bin/getnf -V
- name: Install fonts
run: |
./getnf -i JetBrainsMono,CascadiaCode
./getnf -i "IBMPlexMono Hack"
if [ "${{ runner.os }}" == "Linux" ]; then
test -d "$HOME/.local/share/fonts/JetBrainsMono"
test -d "$HOME/.local/share/fonts/CascadiaCode"
test -d "$HOME/.local/share/fonts/IBMPlexMono"
test -d "$HOME/.local/share/fonts/Hack"
else
test -d "$HOME/Library/Fonts/JetBrainsMono"
test -d "$HOME/Library/Fonts/CascadiaCode"
test -d "$HOME/Library/Fonts/IBMPlexMono"
test -d "$HOME/Library/Fonts/Hack"
fi
- name: Uninstall fonts
run: |
./getnf -u JetBrainsMono,CascadiaCode
./getnf -u "IBMPlexMono Hack"
if [ "${{ runner.os }}" == "Linux" ]; then
! test -d "$HOME/.local/share/fonts/JetBrainsMono"
! test -d "$HOME/.local/share/fonts/CascadiaCode"
! test -d "$HOME/.local/share/fonts/IBMPlexMono"
! test -d "$HOME/.local/share/fonts/Hack"
else
! test -d "$HOME/Library/Fonts/JetBrainsMono"
! test -d "$HOME/Library/Fonts/CascadiaCode"
! test -d "$HOME/Library/Fonts/IBMPlexMono"
! test -d "$HOME/Library/Fonts/Hack"
fi
0