Skip to content

Commit

Permalink
Replace tidal doctor with analyze code for main action
Browse files Browse the repository at this point in the history
- Move action that validates _it works_ to a subfolder
  • Loading branch information
justinbarclay committed Oct 20, 2023
1 parent ab3b949 commit 5470fd8
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 14 deletions.
47 changes: 44 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,59 @@
on: [push]

jobs:
hello_world_job:
doctor:
runs-on: ubuntu-latest
name: A job to say validate the action
name: A job to run tidal doctor
steps:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v4
- name: Tidal Doctor action step
uses: ./ # Uses an action in the root directory
uses: ./doctor
with:
tidal-email: '${{ secrets.TIDAL_EMAIL }}'
tidal-url: '${{ secrets.TIDAL_URL }}'
tidal-password: '${{ secrets.TIDAL_PASSWORD }}'
id: hello
ping:
runs-on: ubuntu-latest
name: A job to run tidal ping
steps:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v4
- name: Tidal Ping action step
uses: ./ping
with:
tidal-email: '${{ secrets.TIDAL_EMAIL }}'
tidal-url: '${{ secrets.TIDAL_URL }}'
tidal-password: '${{ secrets.TIDAL_PASSWORD }}'
analyze-code:
runs-on: ubuntu-latest
name: A job to validate analyze code
steps:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v4
- name: tidal ls
run: |
ls $RUNNER_TEMP
env
- name: Tidal Doctor action step
uses: ./ # Uses an action in the root directory
with:
tidal-email: '${{ secrets.TIDAL_EMAIL }}'
tidal-url: '${{ secrets.TIDAL_URL }}'
tidal-password: '${{ secrets.TIDAL_PASSWORD }}'
app-id: '66'
- name: tidal ls
if: always()
run: |
ls $RUNNER_TEMP
ls $GITHUB_WORKSPACE
echo TEMP HOME
ls /home/runner/work/_temp/_github_home/
echo DONE
28 changes: 17 additions & 11 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,29 @@ name: 'Tidal Tools Code Analysis'
description: 'Run tidal'
inputs:
tidal-email: # id of input
description: 'Who to greet'
description: 'The email for the Tidal Accelerator service user'
required: true
tidal-password:
description: 'Who to greet'
description: 'The password for the Tidal Accelerator service user'
required: true
tidal-url:
description: 'Who to greet'
description: 'The workspace for url for your Tidal Accelerator Account ex: https://workspace.tidal.cloud'
required: true
app-id:
description: 'The ID of the application that is linked to this repository'
required: true
runs:
using: 'docker'
image: 'gcr.io/tidal-1529434400027/tidal-tools:latest'
args:
- 'doctor'
- '--tidal-email'
- '${{inputs.tidal-email}}'
- '--tidal-password'
- '${{inputs.tidal-password}}'
- '--tidal-url'
- '${{inputs.tidal-url}}'

- --tidal-email
- '${{ inputs.tidal-email }}'
- --tidal-password
- '${{ inputs.tidal-password }}'
- --tidal-url
- '${{ inputs.tidal-url }}'
- analyze
- code
- --app-id
- '${{ inputs.app-id }}'
- '.'
24 changes: 24 additions & 0 deletions doctor/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Tidal Tools Code Analysis'
description: 'Run tidal'
inputs:
tidal-email: # id of input
description: 'Who to greet'
required: true
tidal-password:
description: 'Who to greet'
required: true
tidal-url:
description: 'Who to greet'
required: true
runs:
using: 'docker'
image: 'gcr.io/tidal-1529434400027/tidal-tools:latest'
args:
- 'doctor'
- '--tidal-email'
- '${{inputs.tidal-email}}'
- '--tidal-password'
- '${{inputs.tidal-password}}'
- '--tidal-url'
- '${{inputs.tidal-url}}'

24 changes: 24 additions & 0 deletions ping/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Tidal Tools Code Analysis'
description: 'Run tidal'
inputs:
tidal-email: # id of input
description: 'Who to greet'
required: true
tidal-password:
description: 'Who to greet'
required: true
tidal-url:
description: 'Who to greet'
required: true
runs:
using: 'docker'
image: 'gcr.io/tidal-1529434400027/tidal-tools:latest'
args:
- 'ping'
- '--tidal-email'
- '${{inputs.tidal-email}}'
- '--tidal-password'
- '${{inputs.tidal-password}}'
- '--tidal-url'
- '${{inputs.tidal-url}}'

0 comments on commit 5470fd8

Please sign in to comment.