diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 00000000..0d8e8667 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -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 }} \ No newline at end of file diff --git a/okteto.yml b/okteto.yml index a6856586..5afc07ee 100644 --- a/okteto.yml +++ b/okteto.yml @@ -81,3 +81,12 @@ dev: - worker:/usr/src/app forward: - 2345:2345 + + +test: + worker: + image: golang + commands: + - cd worker && printenv | grep GITHUB_ + - echo ------------ + - printenv \ No newline at end of file