Docs/update readme #406
Workflow file for this run
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: Deployment pipeline | |
on: | |
push: | |
branches: [dev] | |
pull_request: | |
branches: [dev] | |
jobs: | |
deployment_pipeline: | |
runs-on: ubuntu-20.04 | |
environment: | |
name: Pre-deployment | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Install dependencies | |
run: npm install | |
- name: Check code style | |
run: npm run format:check | |
- name: Lint code base | |
run: npm run lint | |
- name: Run tests | |
env: | |
TEST_CLOUDINARY_CLOUD_NAME: ${{ secrets.TEST_CLOUDINARY_CLOUD_NAME }} | |
TEST_CLOUDINARY_API_KEY: ${{ secrets.TEST_CLOUDINARY_API_KEY }} | |
TEST_CLOUDINARY_API_SECRET: ${{ secrets.TEST_CLOUDINARY_API_SECRET }} | |
JWT_SECRET: ${{ secrets.JWT_SECRET }} | |
JWT_EXPIRY: ${{ secrets.JWT_EXPIRY }} | |
run: npm run test |