Skip to content

Commit 3ff7fb8

Browse files
committed
ci(pr): install python and cookiecutter
1 parent bda4caf commit 3ff7fb8

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/scaffold.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Generate
2+
on:
3+
pull_request:
4+
branches: [ main ]
5+
jobs:
6+
generate:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Set up Python 3.8
11+
uses: actions/setup-python@v5
12+
with:
13+
python-version: '3.9'
14+
- uses: actions/cache@v4
15+
id: pip-cache
16+
with:
17+
path: ~/.cache/pip
18+
key: ${{ runner.os }}-pip-
19+
restore-keys: |
20+
${{ runner.os }}-pip-
21+
- name: Install cookiecutter
22+
run: |
23+
pip install cookiecutter
24+
# - name: Test cookiecutter
25+
# run: |
26+
# cookiecutter . --no-input
27+
# - name: Set up JDK 21
28+
# uses: actions/setup-java@v1
29+
# with:
30+
# java-version: 21
31+
# - name: Cache Maven packages
32+
# uses: actions/cache@v2
33+
# with:
34+
# path: ~/.m2
35+
# key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
36+
# restore-keys: ${{ runner.os }}-m2
37+
# - name: Build with Maven
38+
# run: cd sample && mvn clean install -ntp

0 commit comments

Comments
 (0)