Update labels.yml #46
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
on: [push] | |
jobs: | |
test-token: | |
runs-on: ubuntu-latest | |
name: Test the action with a setup token | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install the Linode CLI | |
uses: ./ | |
with: | |
token: "${{ secrets.LINODE_TOKEN }}" | |
- name: Run an authenticated command | |
run: linode-cli linodes ls > /dev/null | |
test-notoken: | |
runs-on: ubuntu-latest | |
name: Test the action without a setup token | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install the Linode CLI | |
uses: ./ | |
- name: Run an authenticated command | |
run: linode-cli linodes ls > /dev/null | |
env: | |
LINODE_CLI_TOKEN: "${{ secrets.LINODE_TOKEN }}" | |
test-version: | |
runs-on: ubuntu-latest | |
name: Test the action with an explicit version | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install the Linode CLI | |
uses: ./ | |
with: | |
token: "${{ secrets.LINODE_TOKEN }}" | |
version: v5.48.4 | |
- name: Run an authenticated command | |
run: linode-cli linodes ls > /dev/null | |
test-optional-deps: | |
runs-on: ubuntu-latest | |
name: Test the action with optional dependencies | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install the Linode CLI | |
uses: ./ | |
with: | |
token: "${{ secrets.LINODE_TOKEN }}" | |
optional-deps: true | |
- name: Assert optional dep installed | |
run: pip freeze | grep -q boto3 | |
- name: Run an authenticated command | |
run: linode-cli linodes ls > /dev/null | |
test-no-upgrade: | |
runs-on: ubuntu-latest | |
name: Test the action with upgrade disabled | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install the Linode CLI | |
uses: ./ | |
with: | |
token: "${{ secrets.LINODE_TOKEN }}" | |
upgrade: false | |
- name: Run an authenticated command | |
run: linode-cli linodes ls > /dev/null |