diff --git a/.env b/.env index 24599a2..bac3077 100755 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ TOKEN_VERIFY_URL=http://localhost:5172/api/auth/verify ALLOWED_ORIGINS=http://localhost:4200,http://rutai.kia.prz.edu.pl -ALLOWED_GUEST_USERS=5 \ No newline at end of file +ALLOWED_GUEST_USERS=5 \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3f33dbd..da8854f 100755 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,7 +5,12 @@ on: branches: [ "main" ] jobs: - build: + test: + name: Test + uses: ./.github/workflows/test.yml + deploy: + name: Deploy + needs: [ test ] runs-on: ubuntu-latest steps: - name: Deploy diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 123aa46..da9516a 100755 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,12 +2,12 @@ name: Test on: pull_request: - branches: [ "main", "dev" ] - push: branches: [ "dev" ] + workflow_call: jobs: - build: + test: + name: Test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4