-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.projenrc.ts
62 lines (61 loc) · 1.68 KB
/
.projenrc.ts
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { awscdk } from 'projen';
import { JobPermission } from 'projen/lib/github/workflows-model';
const project = new awscdk.AwsCdkConstructLibrary({
author: 'Eoin Shanaghy',
authorAddress: '[email protected]',
cdkVersion: '2.161.1',
constructsVersion: '10.3.0',
defaultReleaseBranch: 'main',
jsiiVersion: '~5.5.0',
name: 'uv-python-lambda',
projenrcTs: true,
repositoryUrl: 'https://github.com/fourTheorem/uv-python-lambda',
publishToPypi: {
distName: 'uv-python-lambda',
module: 'uv_python_lambda',
},
// cdkVersion: '2.1.0', /* CDK version to use. */
// cdkDependencies: [], /* CDK dependencies of this module. */
// deps: [], /* Runtime dependencies of this module. */
// description: undefined, /* The description is just a string that helps people understand the purpose of the package. */
devDeps: ['@biomejs/biome'] /* Build dependencies for this module. */,
// packageName: undefined, /* The "name" in package.json. */
jestOptions: {
extraCliOptions: ['--testTimeout=300000'],
},
eslint: false,
});
const biomeWorkflow = project.github?.addWorkflow('biome');
biomeWorkflow?.on({
pullRequest: {
branches: ['main'],
},
});
biomeWorkflow?.addJobs({
biome: {
runsOn: ['ubuntu-latest'],
permissions: {
contents: JobPermission.READ,
idToken: JobPermission.WRITE,
},
steps: [
{
uses: 'actions/checkout@v4',
},
{
uses: 'actions/setup-node@v4',
with: {
'node-version': '20',
},
},
{
run: 'yarn install',
},
{
run: 'npx biome check',
},
],
},
});
project.files;
project.synth();