-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 1.05 KB
/
Copy pathtest.yml
File metadata and controls
43 lines (34 loc) · 1.05 KB
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
39
40
41
42
name: CI
on:
push:
branches:
- main
- develop
- future/**
jobs:
quality-check:
if: ${{ github.ref == 'refs/heads/main' }}
if startswith (github.ref_name, "feature") && github.event_name == 'push'
runs on: Ubuntu-latest
steps:
- name: Perform code quality
run: |
echo "Performing quality check $GITHUB_REF"
echo "Performing quality check only"
dev-deploy:
if: ${{ github.ref == 'refs/heads/main' }}
if github.ref_name == 'develop' && github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: Dev Deploy
run: |
echo "Deploying to the Dev enviornment"
echo "Performing quality check only"
prod-deploy:
if: ${{ github.ref == 'refs/heads/main' }}
if github.ref_name == 'production' && github.event_name == 'push'
steps:
- name: Prod Deploy
run: |
echo "Deploy to the Prod enviornment"
echo "Performing quality check only on the produciton"