From 21f8c4048978639fd5813700df9dd149df5aee5c Mon Sep 17 00:00:00 2001 From: Yana Date: Thu, 18 Jul 2024 14:16:15 +0300 Subject: [PATCH 1/2] Enroll tests via github actions --- .github/workflows/tests.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..9ea10f33 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,17 @@ +name: Run test on PRs + +on: + push: + branches: [ 'master' ] + pull_request: + branches: [ 'master' ] + +jobs: + tests: + runs-on: ubuntu-20.04 + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Test yodeploy + run: build-artifact --app yodeploy --test-only From 3c0219314348c887f869a7b92bdeb4bd07c9a442 Mon Sep 17 00:00:00 2001 From: Yana Date: Fri, 19 Jul 2024 16:46:43 +0300 Subject: [PATCH 2/2] Let's test via existing script --- .github/workflows/tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9ea10f33..f51fa1e6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,10 +1,7 @@ name: Run test on PRs on: - push: - branches: [ 'master' ] - pull_request: - branches: [ 'master' ] + push jobs: tests: @@ -13,5 +10,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Test yodeploy - run: build-artifact --app yodeploy --test-only + - name: Test yodeploy via script + run: | + chmod +x ./scripts/test.sh + ./scripts/test.sh + shell: bash