Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Actions workflow for running tests and update okteto.yml #118

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "My Abuelo "
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: Save Git values
run: |
echo "COMMIT_INFO_MESSAGE=\"$(git show -s --format='%h %s')\"" >> $GITHUB_ENV
shell: bash
- name: "Run tests"
uses: okteto/test@jlo/fix-fithub-multiline-envvars
with:
tests: "worker"
variables: USER="im the admin",PASS="admin",COMMIT_INFO_MESSAGE="${{ env.COMMIT_INFO_MESSAGE }}"
log-level: "debug"
env:
OKTETO_CA_CERT: ${{ secrets.OKTETO_CA_CERT }}
9 changes: 9 additions & 0 deletions okteto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,12 @@ dev:
- worker:/usr/src/app
forward:
- 2345:2345


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