forked from HHS/TANF-app
-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (44 loc) · 1.45 KB
/
build-backend.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
39
40
41
42
43
44
###########################################################################
# GitHub Action Workflow
# On push to any branch, triggers the back end build and test pipeline
# if the tdrs-backend has changed.
#
# Step 0: make changes on your branch to non-documentation files in
# tdrs-backend and push changes to your remote branch
#
# Step 1: Makes a request to the V2 CircleCI API to initiate the project,
# which will filter based upon build_and_test_backend
# to run the workflow/jobs listed here:
# build-and-test:[
# test-backend,
# test-e2e
# ]
#
# Leverages the open source GitHub Action:
# https://github.com/promiseofcake/circleci-trigger-action
###########################################################################
name: Build Only Backend When tdrs-backend/ Files Change
on:
push:
paths: 'tdrs-backend/**'
branches-ignore:
- develop
- main
- master
jobs:
build_and_test_backend:
runs-on: ubuntu-latest
name: Build and Test Backend
steps:
- uses: actions/checkout@v2
- name: Circle CI Deployment Trigger
id: curl-circle-ci
uses: promiseofcake/circleci-trigger-action@v1
with:
user-token: ${{ secrets.CIRCLE_CI_V2_TOKEN }}
project-slug: ${{ github.repository }}
branch: ${{ github.ref_name }}
payload: '{
"build_and_test_backend": true,
"triggered": true
}'