fix: use macos compatible sed syntax #195
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
plugin-test: | |
name: asdf plugin test | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Run asdf plugin test | |
uses: asdf-vm/actions/plugin-test@v3 | |
with: | |
command: asdf-plugin-manager version | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Test asdf-plugin-manager plugin | |
run: | | |
asdf plugin add asdf-plugin-manager . | |
asdf install asdf-plugin-manager latest | |
asdf plugin list --urls --refs | |
asdf global asdf-plugin-manager latest | |
asdf plugin remove asdf-plugin-manager | |
- name: Test asdf-plugin-manager cli | |
run: | | |
set -euox pipefail | |
cp -a cli/asdf-plugin-manager.sh /usr/local/bin/asdf-plugin-manager | |
cd test | |
asdf-plugin-manager list | |
asdf-plugin-manager add-all | |
asdf plugin list --refs | |
asdf-plugin-manager update-all | |
- name: Validate installed plugins | |
run: | | |
set -euox pipefail | |
PLUGIN_GIT_REF=$(grep -oE "[^ ]\w{6}$" test/.plugin-versions) | |
asdf plugin list --refs | grep "${PLUGIN_GIT_REF}" && | |
echo "[Passed] The plugin git ref in test/.plugin-versions matches the installed one." | |
- name: Test asdf-plugin-manager cli - remove | |
run: | | |
set -euox pipefail | |
cd test | |
asdf-plugin-manager remove-all | |
asdf plugin list |