@@ -50,48 +50,46 @@ jobs:
50
50
distribution : " corretto"
51
51
java-version : ${{ matrix.java-version }}
52
52
53
- # - name: Setup Dafny
54
- # uses: dafny-lang/[email protected]
55
- # with:
56
- # dafny-version: ${{ needs.getVersion.outputs.version }}
53
+ - name : Setup Dafny
54
+ uses :
dafny-lang/[email protected]
55
+ with :
56
+ dafny-version : ${{ needs.getVersion.outputs.version }}
57
57
58
- # - name: Regenerate code using smithy-dafny if necessary
59
- # if: ${{ inputs.regenerate-code }}
60
- # uses: ./.github/actions/polymorph_codegen
61
- # with:
62
- # dafny: ${{ env.DAFNY_VERSION }}
63
- # library: DynamoDbEncryption
64
- # diff-generated-code: false
65
- # update-and-regenerate-mpl: true
58
+ - name : Regenerate code using smithy-dafny if necessary
59
+ if : ${{ inputs.regenerate-code }}
60
+ uses : ./.github/actions/polymorph_codegen
61
+ with :
62
+ dafny : ${{ env.DAFNY_VERSION }}
63
+ library : DynamoDbEncryption
64
+ diff-generated-code : false
65
+ update-and-regenerate-mpl : true
66
66
67
67
# The following two steps: "Build and deploy to maven local" and "Run Extensive Tests"
68
68
# mimic the tests in ./codebuild/staging/release-staging.yml
69
- # - name: Build and deploy to maven local
70
- # shell: bash
71
- # working-directory: ./DynamoDbEncryption
72
- # run: |
73
- # # Run transpile by itself. We don't want to locally build the MPL because
74
- # # we want to verify that the version pulled down from maven works correctly
75
- # make transpile_implementation_java
76
- # make transpile_test_java
77
- # make mvn_local_deploy
78
- # make test_java
69
+ - name : Build and deploy to maven local
70
+ shell : bash
71
+ working-directory : ./DynamoDbEncryption
72
+ run : |
73
+ # Run transpile by itself. We don't want to locally build the MPL because
74
+ # we want to verify that the version pulled down from maven works correctly
75
+ make transpile_implementation_java
76
+ make transpile_test_java
77
+ make mvn_local_deploy
78
+ make test_java
79
79
80
- # - name: Run Extensive Tests
81
- # working-directory: ./DynamoDbEncryption
82
- # run: |
83
- # gradle -p runtimes/java clean
84
- # gradle -p runtimes/java test
80
+ - name : Run Extensive Tests
81
+ working-directory : ./DynamoDbEncryption
82
+ run : |
83
+ gradle -p runtimes/java clean
84
+ gradle -p runtimes/java test
85
85
86
86
# This makes sure that we are using the correct MPL version to test the DB-ESDK.
87
87
# If this contains a SNAPSHOT version, this will fail because'
88
88
# we are NOT building the MPL recursively but pulling from Maven.
89
89
- name : Update project.properties to use the correct MPL version (from project.properties in DB-ESDK)
90
90
working-directory : ./submodules/MaterialProviders/
91
91
run : |
92
- cat project.properties
93
92
sed "s/mplVersion=.*/mplVersion=${{needs.getMplDependencyJavaVersion.outputs.version}}/g" project.properties > project.properties2; mv project.properties2 project.properties
94
- cat project.properties
95
93
96
94
# The following three steps: "Transpile MPL Test Vectors without recursively building the MPL",
97
95
# "Run Test Vectors", and "Test Examples" mimic the tests in ./codebuild/staging/validate-staging.yml
100
98
run : |
101
99
# Run transpile by itself. We don't want to locally build the MPL because
102
100
# we want to verify that the version pulled down from maven works correctly
103
- cat ../project.properties
104
101
make transpile_implementation_java
105
102
make transpile_test_java
106
103
make mvn_local_deploy
0 commit comments