Skip to content

Commit

Permalink
ci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rannn505 committed Dec 7, 2022
1 parent b6227eb commit 29833ba
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 41 deletions.
51 changes: 16 additions & 35 deletions .github/workflows/setup-cli-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,40 +51,21 @@ jobs:
if: ${{ matrix['version'] == 'latest' }}
run: configu version | grep '@configu/cli'

# test-login-credentials:
# name: 'Test login with credentials from configuration'
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
# steps:
# - name: Checkout
# uses: actions/checkout@v3

# - name: Setup Configu CLI
# uses: ./
# with:
# org: ${{ secrets.CONFIGU_ORG }}
# token: ${{ secrets.CONFIGU_TOKEN }}

# - name: Validate Configu API access
# run: configu list

# test-env-credentials:
# name: 'Test auth with credentials from environment variables'
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
# steps:
# - name: Checkout
# uses: actions/checkout@v3
test-env-credentials:
name: 'Test auth with credentials from environment variables'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@v3

# - name: Setup Configu CLI
# uses: ./
- name: Setup Configu CLI
uses: ./

# - name: Validate Configu API access
# run: configu list
# env:
# CONFIGU_ORG: ${{ secrets.CONFIGU_ORG }}
# CONFIGU_TOKEN: ${{ secrets.CONFIGU_TOKEN }}
- name: Validate Configu Store access
run: configu export --store "configu://-" --set "test" --schema "./setup-cli-action.cfgu.json"
env:
CONFIGU_ORG: ${{ secrets.CONFIGU_ORG }}
CONFIGU_TOKEN: ${{ secrets.CONFIGU_TOKEN }}
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,9 @@ jobs:
steps:
- name: Setup Configu CLI
uses: configu/setup-cli-action@v1
- name: Set Configu store
- run: configu store --name "configu" --uri "configu://-"
- name: Export configurations
run: configu export --set "production" --schema "path/to/schema.cfgu.json"
run: configu export --store "configu://-" --set "production" --schema "path/to/schema.cfgu.json"
```

## Inputs
Expand Down
2 changes: 1 addition & 1 deletion setup-cli-action.cfgu.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"setup-cli-action": {
"CONFIGU_CI": {
"type": "String"
}
}

0 comments on commit 29833ba

Please sign in to comment.