test: Add a test case to products_createCategory_post.test
tests file
#8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous deployment workflow | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
continuous-deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch the repository | |
uses: actions/checkout@v4 | |
- name: Install the dependencies | |
run: npm install | |
- name: Create `.env.secret` file | |
run: echo "${{ secrets.TESTING_ENV_FILE_CONTENT }}" >> .env.secret | |
- name: Run tests | |
run: npm run test | |
- name: Build the Docker Image | |
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/am-store-server . | |
- name: Log in to Docker hub | |
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin | |
- name: Push the Docker Image | |
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/am-store-server | |
- name: Trigger deploy event for the server | |
run: curl ${{ secrets.RENDER_DEPLOY_HOOK_URL }} |