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

fix: e2e-test workflow #605

Merged
merged 18 commits into from
May 25, 2022
Merged
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
15 changes: 6 additions & 9 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: e2e test

on:
push:
branches:
- main
branches: [ main ]
paths:
- '**.go'
- 'Makefile'
Expand All @@ -25,12 +24,15 @@ env:

jobs:
e2e-test:
# permissions for id and other
permissions:
id-token: write
contents: write
if: github.repository == 'devstream-io/devstream'
strategy:
matrix:
os: [ubuntu-latest]
go: [1.17.x]
permissions: write-all
runs-on: ${{ matrix.os }}
name: e2e-test-${{ matrix.os }}
steps:
Expand All @@ -53,7 +55,7 @@ jobs:
- name: Build
run: make build -j8
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@master
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -67,15 +69,10 @@ jobs:
run: ./dtm apply -f e2e-config.yaml -y
- name: apply twice git-ops
run: ./dtm apply -f e2e-config.yaml -y
- name: apply trello-github
run: ./dtm apply -f e2e-trello-github-config.yaml -y
- name: apply twice trello-github
run: ./dtm apply -f e2e-trello-github-config.yaml -y
- name: check if pod is ready
run: while [[ $(kubectl get pods -l app=dtm-e2e-go -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "pod not ready yet..."; sleep 3; done
timeout-minutes: 10
- name: verify
run: ./dtm verify -f e2e-config.yaml
- name: clean
run: ./dtm delete -f e2e-config.yaml -y