Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #8

Merged
merged 12 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
name: 'test ${{ matrix.os }}'
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup dctl CLI
uses: ./

- name: Test dctl
run: dctl --version
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ steps:
uses: actions/checkout@v3

- name: Setup dctl CLI
uses: doseiai/[email protected].18
uses: doseiai/[email protected].19
with:
token: ${{ secrets.DOSEI_TOKEN }}
```
14 changes: 13 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,20 @@ inputs:
runs:
using: "composite"
steps:
- run: curl -fsSL https://dosei.ai/install.sh | sh
- run: |
curl -fsSL https://dosei.ai/install.sh | sh
if [ "$RUNNER_OS" == "Linux" ]; then
echo "/home/runner/.dosei/bin" >> $GITHUB_PATH
elif [ "$RUNNER_OS" == "macOS" ]; then
echo "/Users/runner/.dosei/bin" >> $GITHUB_PATH
fi
shell: bash
if: runner.os != 'Windows'
- run: |
irm https://dosei.ai/install.ps1 | iex
Add-Content $env:GITHUB_PATH "$env:USERPROFILE\.dosei\bin"
shell: pwsh
if: runner.os == 'Windows'
- run: echo "DOSEI_TOKEN=${{ inputs.token }}" >> $GITHUB_ENV
if: ${{ inputs.token }}
shell: bash
Loading