feat: Add support for CPU architecture #101
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: integration | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/**' | |
- 'dist/**' | |
- 'src/**' | |
- 'action.yml' | |
- 'yarn.lock' | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/**' | |
- 'dist/**' | |
- 'src/**' | |
- 'action.yml' | |
- 'yarn.lock' | |
jobs: | |
no-auth: | |
name: Download w/o auth | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Show version | |
uses: ./ | |
with: | |
command: version | |
options: --client | |
- name: Check install - should not re-download | |
uses: ./ | |
with-auth: | |
name: Download with auth | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Show version | |
uses: ./ | |
env: | |
# Only required for first step in workflow where API is called | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
command: version | |
options: --client | |
- name: Check install - should not re-download | |
uses: ./ | |
- name: This should work too | |
run: | | |
argocd version --client | |
set-version: | |
name: Set version | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Show version | |
uses: ./ | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
version: 2.4.18 | |
command: version | |
options: --client |