Skip to content

Commit 36e00d2

Browse files
committed
Add GitHub Actions workflow for devflow and test environment
Signed-off-by: Javier Lopez <javier@okteto.com>
1 parent efca18b commit 36e00d2

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/test.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on:
2+
pull_request:
3+
branches:
4+
- main
5+
6+
jobs:
7+
devflow:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Context
11+
uses: okteto/context@latest
12+
with:
13+
token: ${{ secrets.OKTETO_TOKEN }}
14+
url: ${{ secrets.OKTETO_URL }}
15+
- name: checkout
16+
uses: actions/checkout@master
17+
- name: "Set multi-line env vars"
18+
run: |
19+
echo "MY_VAR<<EOF" >> $GITHUB_ENV
20+
echo "This is line 1" >> $GITHUB_ENV
21+
echo "This is line 2" >> $GITHUB_ENV
22+
echo "EOF" >> $GITHUB_ENV
23+
- name: "Run tests"
24+
uses: okteto/test@latest
25+
with:
26+
tests: "integration"
27+
variables: "PASS=admin"

okteto.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,9 @@ dev:
8181
- worker:/usr/src/app
8282
forward:
8383
- 2345:2345
84+
85+
test:
86+
worker:
87+
image: golang
88+
commands:
89+
- cd worker && printenv | grep GITHUB

0 commit comments

Comments
 (0)