Skip to content

Commit 16165e5

Browse files
committed
Replace tidal doctor with analyze code for main action
- Move action that validates _it works_ to a subfolder
1 parent ab3b949 commit 16165e5

File tree

4 files changed

+98
-15
lines changed

4 files changed

+98
-15
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,47 @@
11
on: [push]
22

33
jobs:
4-
hello_world_job:
4+
doctor:
55
runs-on: ubuntu-latest
6-
name: A job to say validate the action
6+
name: A job to run tidal doctor
77
steps:
88
# To use this repository's private action,
99
# you must check out the repository
1010
- name: Checkout
1111
uses: actions/checkout@v4
1212
- name: Tidal Doctor action step
13-
uses: ./ # Uses an action in the root directory
13+
uses: ./doctor
1414
with:
1515
tidal-email: '${{ secrets.TIDAL_EMAIL }}'
1616
tidal-url: '${{ secrets.TIDAL_URL }}'
1717
tidal-password: '${{ secrets.TIDAL_PASSWORD }}'
1818
id: hello
19+
ping:
20+
runs-on: ubuntu-latest
21+
name: A job to run tidal ping
22+
steps:
23+
# To use this repository's private action,
24+
# you must check out the repository
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
- name: Tidal Ping action step
28+
uses: ./ping
29+
with:
30+
tidal-email: '${{ secrets.TIDAL_EMAIL }}'
31+
tidal-url: '${{ secrets.TIDAL_URL }}'
32+
tidal-password: '${{ secrets.TIDAL_PASSWORD }}'
33+
analyze-code:
34+
runs-on: ubuntu-latest
35+
name: A job to validate analyze code
36+
steps:
37+
# To use this repository's private action,
38+
# you must check out the repository
39+
- name: Checkout
40+
uses: actions/checkout@v4
41+
- name: Tidal Doctor action step
42+
uses: ./ # Uses an action in the root directory
43+
with:
44+
tidal-email: '${{ secrets.TIDAL_EMAIL }}'
45+
tidal-url: '${{ secrets.TIDAL_URL }}'
46+
tidal-password: '${{ secrets.TIDAL_PASSWORD }}'
47+
app-id: '66'

action.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,29 @@ name: 'Tidal Tools Code Analysis'
22
description: 'Run tidal'
33
inputs:
44
tidal-email: # id of input
5-
description: 'Who to greet'
5+
description: 'The email for the Tidal Accelerator service user'
66
required: true
77
tidal-password:
8-
description: 'Who to greet'
8+
description: 'The password for the Tidal Accelerator service user'
99
required: true
1010
tidal-url:
11-
description: 'Who to greet'
11+
description: 'The workspace for url for your Tidal Accelerator Account ex: https://workspace.tidal.cloud'
12+
required: true
13+
app-id:
14+
description: 'The ID of the application that is linked to this repository'
1215
required: true
1316
runs:
1417
using: 'docker'
15-
image: 'gcr.io/tidal-1529434400027/tidal-tools:latest'
18+
image: 'docker://gcr.io/tidal-1529434400027/tidal-tools:latest'
1619
args:
17-
- 'doctor'
18-
- '--tidal-email'
19-
- '${{inputs.tidal-email}}'
20-
- '--tidal-password'
21-
- '${{inputs.tidal-password}}'
22-
- '--tidal-url'
23-
- '${{inputs.tidal-url}}'
24-
20+
- --tidal-email
21+
- '${{ inputs.tidal-email }}'
22+
- --tidal-password
23+
- '${{ inputs.tidal-password }}'
24+
- --tidal-url
25+
- '${{ inputs.tidal-url }}'
26+
- analyze
27+
- code
28+
- --app-id
29+
- '${{ inputs.app-id }}'
30+
- '.'

doctor/action.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Tidal Tools Code Analysis'
2+
description: 'Run tidal'
3+
inputs:
4+
tidal-email: # id of input
5+
description: 'Who to greet'
6+
required: true
7+
tidal-password:
8+
description: 'Who to greet'
9+
required: true
10+
tidal-url:
11+
description: 'Who to greet'
12+
required: true
13+
runs:
14+
using: 'docker'
15+
image: 'gcr.io/tidal-1529434400027/tidal-tools:latest'
16+
args:
17+
- 'doctor'
18+
- '--tidal-email'
19+
- '${{inputs.tidal-email}}'
20+
- '--tidal-password'
21+
- '${{inputs.tidal-password}}'
22+
- '--tidal-url'
23+
- '${{inputs.tidal-url}}'
24+

ping/action.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Tidal Tools Code Analysis'
2+
description: 'Run tidal'
3+
inputs:
4+
tidal-email: # id of input
5+
description: 'Who to greet'
6+
required: true
7+
tidal-password:
8+
description: 'Who to greet'
9+
required: true
10+
tidal-url:
11+
description: 'Who to greet'
12+
required: true
13+
runs:
14+
using: 'docker'
15+
image: 'gcr.io/tidal-1529434400027/tidal-tools:latest'
16+
args:
17+
- 'ping'
18+
- '--tidal-email'
19+
- '${{inputs.tidal-email}}'
20+
- '--tidal-password'
21+
- '${{inputs.tidal-password}}'
22+
- '--tidal-url'
23+
- '${{inputs.tidal-url}}'
24+

0 commit comments

Comments
 (0)