Skip to content

Commit

Permalink
fix: e2e-test workflow (#605)
Browse files Browse the repository at this point in the history
* fix: temporarily remove trello-github test

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: use delete before next step after git-ops

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: trigger on pr event

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: permissions on scope

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: permissions on scope after env

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: crendentials use master branch

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: crendentials modify

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: workflow name

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: direct aws crendentials

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: restore build

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: crendentials

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: allow pull request read

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: allow pull request opened

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: allow pull request branches

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: allow pull request: add event

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: allow pull request: branch

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: restore push

Signed-off-by: KeHao <hao.ke@merico.dev>

* fix: e2e-test workflow

Signed-off-by: KeHao <hao.ke@merico.dev>
  • Loading branch information
KeHaohaoke authored May 25, 2022
1 parent d54c66d commit 187a6a6
Showing 1 changed file with 6 additions and 9 deletions.
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

0 comments on commit 187a6a6

Please sign in to comment.