Skip to content

Commit 4f50ef2

Browse files
author
Dennis Kieselhorst
authored
Create GitHub action for CI
1 parent b140043 commit 4f50ef2

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Continuous integration
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
workflow_dispatch:
8+
9+
jobs:
10+
cfn-nag:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: stelligent/cfn_nag@master
15+
with:
16+
input_path: template.yaml
17+
- uses: stelligent/cfn_nag@master
18+
with:
19+
input_path: final/unicorn-location-api-final/template.yaml
20+
21+
build-unicorn-location-api:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Build starting point
26+
run: mvn -q package
27+
working-directory: ./labs/unicorn-location-api/UnicornLocationFunction
28+
- name: Build final
29+
run: mvn -q package
30+
working-directory: ./labs/unicorn-location-api/final/unicorn-location-api-final
31+

0 commit comments

Comments
 (0)