-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 1022 Bytes
/
main.yml
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
name: build-and-test
on:
push:
workflow_dispatch:
env:
CREDENTIALS_FROM_ENVIRONMENT: 'true'
AWS_REGION: 'us-east-2'
AWS_ROLE_TO_ASSUME: 'arn:aws:iam::922513866616:oidc-provider/token.actions.githubusercontent.com'
permissions:
id-token: write
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'liberica'
java-version: '17.0'
java-package: jdk+fx
- name: Configure AWS Credentials
id: creds
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }}
role-session-name: 'Play-Scraper-AWS-Testing'
output-credentials: true
- name: get caller identity 1
run: |
aws sts get-caller-identity
# - run: sbt -v playScrapeServer/publishLocal
# - run: sbt -v playScrape/scripted