Skip to content

Commit

Permalink
Add GitHub Actions workflow for devflow and test environment
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Lopez <[email protected]>
  • Loading branch information
jLopezbarb committed Sep 9, 2024
1 parent efca18b commit 36e00d2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
pull_request:
branches:
- main

jobs:
devflow:
runs-on: ubuntu-latest
steps:
- name: Context
uses: okteto/context@latest
with:
token: ${{ secrets.OKTETO_TOKEN }}
url: ${{ secrets.OKTETO_URL }}
- name: checkout
uses: actions/checkout@master
- name: "Set multi-line env vars"
run: |
echo "MY_VAR<<EOF" >> $GITHUB_ENV
echo "This is line 1" >> $GITHUB_ENV
echo "This is line 2" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: "Run tests"
uses: okteto/test@latest
with:
tests: "integration"
variables: "PASS=admin"
6 changes: 6 additions & 0 deletions okteto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,9 @@ dev:
- worker:/usr/src/app
forward:
- 2345:2345

test:
worker:
image: golang
commands:
- cd worker && printenv | grep GITHUB

0 comments on commit 36e00d2

Please sign in to comment.