-
Notifications
You must be signed in to change notification settings - Fork 240
42 lines (35 loc) · 1022 Bytes
/
aws-lambda-java-log4j2.yml
File metadata and controls
42 lines (35 loc) · 1022 Bytes
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
# This workflow will be triggered if there will be changes to
# aws-lambda-java-log4j2 package or its dependency (core), and it builds the package.
name: Java CI aws-lambda-java-log4j2
on:
push:
workflow_dispatch:
branches: [ main ]
paths:
- 'aws-lambda-java-log4j2/**'
- 'aws-lambda-java-core/**'
pull_request:
branches: [ '*' ]
paths:
- 'aws-lambda-java-log4j2/**'
- 'aws-lambda-java-core/**'
- '.github/workflows/aws-lambda-java-log4j2.yml'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
java-version: 8
distribution: corretto
cache: maven
# Install dependency
- name: Install core with Maven
run: mvn -B install --file aws-lambda-java-core/pom.xml
# Package target module
- name: Package log4j2 with Maven
run: mvn -B package --file aws-lambda-java-log4j2/pom.xml