|
| 1 | +name: test |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + pull_request: |
| 8 | + |
| 9 | +jobs: |
| 10 | + asdf_is_installed: |
| 11 | + strategy: |
| 12 | + fail-fast: false |
| 13 | + matrix: |
| 14 | + os: ["macos-latest", "ubuntu-latest"] |
| 15 | + runs-on: ${{ matrix.os }} |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v3 |
| 18 | + - name: setup asdf |
| 19 | + uses: ./setup |
| 20 | + - name: asdf is available |
| 21 | + run: | |
| 22 | + echo ASDF_DIR="${ASDF_DIR}" |
| 23 | + echo ASDF_DATA_DIR="${ASDF_DATA_DIR}" |
| 24 | + echo PATH="${PATH}" |
| 25 | + asdf --version |
| 26 | +
|
| 27 | + plugin_is_tested: |
| 28 | + strategy: |
| 29 | + fail-fast: false |
| 30 | + matrix: |
| 31 | + os: ["macos-latest", "ubuntu-latest"] |
| 32 | + runs-on: ${{ matrix.os }} |
| 33 | + steps: |
| 34 | + - uses: actions/checkout@v3 |
| 35 | + - uses: ./plugin-test |
| 36 | + with: |
| 37 | + command: direnv --version |
| 38 | + plugin: direnv |
| 39 | + giturl: https://github.com/asdf-community/asdf-direnv.git |
| 40 | + gitref: master |
| 41 | + |
| 42 | + plugins_are_installed: |
| 43 | + strategy: |
| 44 | + fail-fast: false |
| 45 | + matrix: |
| 46 | + os: ["macos-latest", "ubuntu-latest"] |
| 47 | + runs-on: ${{ matrix.os }} |
| 48 | + steps: |
| 49 | + - uses: actions/checkout@v3 |
| 50 | + - uses: ./plugins-add |
| 51 | + with: |
| 52 | + tool_versions: | |
| 53 | + # tools won't be installed by this action, only plugins |
| 54 | + elixir foo |
| 55 | + nodejs bar |
| 56 | + - run: | |
| 57 | + asdf plugin list --urls --refs | grep elixir |
| 58 | + asdf plugin list --urls --refs | grep nodejs |
| 59 | +
|
| 60 | + installing-plugins-already-installed-are-skiped: |
| 61 | + strategy: |
| 62 | + fail-fast: false |
| 63 | + matrix: |
| 64 | + os: ["macos-latest", "ubuntu-latest"] |
| 65 | + runs-on: ${{ matrix.os }} |
| 66 | + steps: |
| 67 | + - uses: actions/checkout@v3 |
| 68 | + - uses: ./setup |
| 69 | + - name: Add an asdf plugin |
| 70 | + run: | |
| 71 | + asdf plugin-add clusterctl https://github.com/pfnet-research/asdf-clusterctl.git |
| 72 | + - uses: ./plugins-add |
| 73 | + with: |
| 74 | + tool_versions: | |
| 75 | + # tools won't be installed by this action, only plugins |
| 76 | + elixir foo |
| 77 | + nodejs bar |
| 78 | + # plugins already installed are here |
| 79 | + clusterctl tako |
| 80 | + - run: | |
| 81 | + asdf plugin list --urls --refs | grep elixir |
| 82 | + asdf plugin list --urls --refs | grep nodejs |
| 83 | + asdf plugin list --urls --refs | grep clusterctl |
| 84 | +
|
| 85 | + tools_are_installed: |
| 86 | + strategy: |
| 87 | + fail-fast: false |
| 88 | + matrix: |
| 89 | + os: ["macos-latest", "ubuntu-latest"] |
| 90 | + runs-on: ${{ matrix.os }} |
| 91 | + steps: |
| 92 | + - uses: actions/checkout@v3 |
| 93 | + - name: setup asdf |
| 94 | + uses: ./install |
| 95 | + with: |
| 96 | + before_install: echo asdf nodejs import-keyring |
| 97 | + tool_versions: direnv 2.32.1 |
| 98 | + - run: direnv version |
0 commit comments