Skip to content

Fix macOS downloads of 2.20 and later (#8) #168

Fix macOS downloads of 2.20 and later (#8)

Fix macOS downloads of 2.20 and later (#8) #168

Workflow file for this run

name: Build
on:
pull_request:
paths-ignore:
- "**.md"
push:
branches:
- master
paths-ignore:
- "**.md"
jobs:
plugin_test:
name: asdf plugin test
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: asdf_plugin_test
uses: asdf-vm/actions/plugin-test@v2
with:
command: op --version
- name: Checkout code
uses: actions/checkout@v4
with:
path: 1password-cli
- name: Move 1password-cli plugin to plugins dir
run: |
mkdir -p ${HOME}/.asdf/plugins/
mv 1password-cli ${HOME}/.asdf/plugins/
- name: Run 1password-cli specific tests
run: |
echo "Trying to list all versions of 1password-cli"
asdf list all 1password-cli
echo "Will try to install 1password-cli 1.11.0 (Last version with amd64 for macOS)"
asdf install 1password-cli 1.11.0
echo "Will try to install 1password-cli 1.11.1 (First version with universal for macOS)"
asdf install 1password-cli 1.11.1
echo "Will try to install 1password-cli 2.0.0 (First 2.0 version)"
asdf install 1password-cli 2.0.0
echo "Will try to install 1password-cli 2.2.0 (First version with zip and pkg versions for macOS)"
asdf install 1password-cli 2.2.0
echo "Setting 1password-cli version 1.11.0 as the default value in ~/.tool-versions"
echo '1password-cli 1.11.0' > ~/.tool-versions
op --version 2>&1 | grep '1.11.0'
echo "Setting 1password-cli version 1.11.1 as the default value in ~/.tool-versions"
echo '1password-cli 1.11.1' > ~/.tool-versions
op --version 2>&1 | grep '1.11.1'
echo "Setting 1password-cli version 2.0.0 as the default value in ~/.tool-versions"
echo '1password-cli 2.0.0' > ~/.tool-versions
op --version 2>&1 | grep '2.0.0'
echo "Setting 1password-cli version 2.2.0 as the default value in ~/.tool-versions"
echo '1password-cli 2.2.0' > ~/.tool-versions
op --version 2>&1 | grep '2.2.0'