Skip to content

Add project label (#11) #48

Add project label (#11)

Add project label (#11) #48

Workflow file for this run

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