From 3ad9a26b650ad7967c632a6fb001a1e80004590e Mon Sep 17 00:00:00 2001 From: Damanpreet Singh Date: Tue, 19 Nov 2024 17:57:02 +0530 Subject: [PATCH 1/3] Add valiation using doctl apps dev build --- .github/workflows/appsdevbuild.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/appsdevbuild.yaml diff --git a/.github/workflows/appsdevbuild.yaml b/.github/workflows/appsdevbuild.yaml new file mode 100644 index 00000000..df05b21c --- /dev/null +++ b/.github/workflows/appsdevbuild.yaml @@ -0,0 +1,16 @@ +on: [push, pull_request_target] +name: Test build + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + + - name: Install doctl + uses: digitalocean/action-doctl@v2 + with: + token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} + + - name: Run dev build + run: doctl apps dev build --no-cache \ No newline at end of file From 66b7b3c6c2efabe2e765f335c30570eb8f03b656 Mon Sep 17 00:00:00 2001 From: Damanpreet Singh Date: Tue, 19 Nov 2024 20:43:03 +0530 Subject: [PATCH 2/3] Update appsdevbuild.yaml workflow --- .github/workflows/appsdevbuild.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/appsdevbuild.yaml b/.github/workflows/appsdevbuild.yaml index df05b21c..e32a6e57 100644 --- a/.github/workflows/appsdevbuild.yaml +++ b/.github/workflows/appsdevbuild.yaml @@ -1,8 +1,10 @@ -on: [push, pull_request_target] -name: Test build +name: Test build by running doctl apps dev build +on: + pull_request: + branches: ["*"] jobs: - test: + build: runs-on: ubuntu-latest steps: - uses: actions/checkout@master From ba954af954aff51dc8a0431dde5662f4d9cb8906 Mon Sep 17 00:00:00 2001 From: Damanpreet Singh Date: Tue, 19 Nov 2024 22:58:40 +0530 Subject: [PATCH 3/3] Update .github/workflows/appsdevbuild.yaml Co-authored-by: Elan Hasson <234704+ElanHasson@users.noreply.github.com> --- .github/workflows/appsdevbuild.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/appsdevbuild.yaml b/.github/workflows/appsdevbuild.yaml index e32a6e57..d287d549 100644 --- a/.github/workflows/appsdevbuild.yaml +++ b/.github/workflows/appsdevbuild.yaml @@ -15,4 +15,4 @@ jobs: token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} - name: Run dev build - run: doctl apps dev build --no-cache \ No newline at end of file + run: doctl apps dev build --no-cache