chore(deps): bump rrainn/dynamodb-action from 3.0.0 to 4.0.0 in /.github/workflows #2961
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow performs tests in Java. | |
name: Library Java tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
# Manual trigger for this workflow, either the normal version | |
# or the nightly build that uses the latest Dafny prerelease | |
# (accordingly to the "nightly" parameter). | |
inputs: | |
nightly: | |
description: 'Run the nightly build' | |
required: false | |
type: boolean | |
schedule: | |
# Nightly build against Dafny's nightly prereleases, | |
# for early warning of verification issues or regressions. | |
# Timing chosen to be adequately after Dafny's own nightly build, | |
# but this might need to be tweaked: | |
# https://github.com/dafny-lang/dafny/blob/master/.github/workflows/deep-tests.yml#L16 | |
- cron: "30 16 * * *" | |
jobs: | |
testJava: | |
# Don't run the nightly build on forks | |
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | |
strategy: | |
matrix: | |
library: [ | |
DynamoDbEncryption | |
] | |
java-version: [ 8, 11, 16, 17 ] | |
os: [ | |
macos-latest | |
] | |
runs-on: ${{ matrix.os }} | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: us-west-2 | |
role-to-assume: arn:aws:iam::370957321024:role/GitHub-CI-DDBEC-Dafny-Role-us-west-2 | |
role-session-name: DDBEC-Dafny-Java-Tests | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup Dafny | |
uses: dafny-lang/[email protected] | |
with: | |
# A && B || C is the closest thing to an if .. then ... else ... or ?: expression the GitHub Actions syntax supports. | |
dafny-version: ${{ (github.event_name == 'schedule' || inputs.nightly) && 'nightly-latest' || '4.2.0' }} | |
- name: Setup Java ${{ matrix.java-version }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: ${{ matrix.java-version }} | |
- name: Build ${{ matrix.library }} implementation | |
shell: bash | |
working-directory: ./${{ matrix.library }} | |
run: | | |
# This works because `node` is installed by default on GHA runners | |
CORES=$(node -e 'console.log(os.cpus().length)') | |
make build_java CORES=$CORES | |
- name: Test ${{ matrix.library }} | |
working-directory: ./${{ matrix.library }} | |
run: | | |
make test_java |