Skip to content

Commit

Permalink
Changed test action version
Browse files Browse the repository at this point in the history
Signed-off-by: Nacho Fuertes <[email protected]>
  • Loading branch information
ifbyol committed Dec 10, 2024
1 parent fa8994a commit dc364c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
jobs:
preview:
runs-on: ubuntu-latest
container: okteto/pipeline-runner:1.0.6
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -16,21 +15,11 @@ jobs:
with:
token: ${{ secrets.OKTETO_TOKEN }}
url: ${{ secrets.OKTETO_URL }}

# - name: Deploy preview environment
# uses: okteto/deploy-preview@latest
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# name: ifbyol-pr-${{ github.event.number }}
# scope: global

- name: Test
uses: okteto/test@3.1.0
uses: okteto/test@ifbyol/test-action
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
namespace: ifbyol-okteto-admin
file: okteto.yaml
log-level: debug
tests: unit
20 changes: 16 additions & 4 deletions okteto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ build:
context: .

deploy:
remote: true
#remote: true
commands:
- name: Cue
command: cue version
#- name: Cue
# command: cue version
- name: PWD
command: pwd
- name: Ssh list identities
Expand All @@ -30,7 +30,19 @@ test:
unit:
commands:
- name: hi
command: echo "hi!"
command: echo "hi unit!"
integration:
commands:
- name: hi
command: echo "hi integration!"
depends_on:
- unit
e2e:
commands:
- name: hi
command: echo "hi e2e!"
depends_on:
- integration

destroy:
remote: true
Expand Down

0 comments on commit dc364c6

Please sign in to comment.