Skip to content

Commit c81d083

Browse files
committed
Add Copilot Setup Steps workflow
1 parent 21ed069 commit c81d083

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "Copilot Setup Steps"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- .github/workflows/copilot-setup-steps.yml
8+
pull_request:
9+
paths:
10+
- .github/workflows/copilot-setup-steps.yml
11+
12+
jobs:
13+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
14+
copilot-setup-steps:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
19+
# Steps that will run before the agent starts
20+
steps:
21+
- name: 'Checkout'
22+
uses: actions/checkout@v2
23+
with:
24+
submodules: true
25+
- name: 'Cache'
26+
uses: actions/cache@v4
27+
with:
28+
path: |
29+
~/.m2
30+
~/.gradle
31+
key: ${{ runner.os }}-gradle-${{ hashFiles('build.gradle') }}
32+
- name: 'Setup Java'
33+
uses: actions/setup-java@v1
34+
with:
35+
java-version: 17
36+
java-package: jdk
37+
- name: 'Build'
38+
run: ./gradlew build --max-workers 1
39+
env:
40+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
41+
MAVEN_KEY: ${{ secrets.MAVEN_KEY }}

0 commit comments

Comments
 (0)