forked from AltCamp/altcampv1-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 899 Bytes
/
pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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