This repository contains a simple GitHub Actions workflow to test the nais/setup-nais-cli action.
The workflow (test-basic.yml) does the following:
- Triggers: Runs on push to main/master branches and manual dispatch
- Version Input: Allows specifying a version during manual dispatch (defaults to 'latest')
- Test: Installs the nais CLI and verifies the
--versionflag works
The workflow runs automatically on every push to the main branch.
- Go to the "Actions" tab in your GitHub repository
- Select "Test nais/setup-nais-cli" workflow
- Click "Run workflow"
- Optionally specify a version (e.g.,
v3.8.3) or leave blank for latest - Click "Run workflow"
The workflow should:
- Successfully install the nais CLI using the
nais/setup-nais-cli@v1action - Verify the installation with
nais --version - Complete without errors