-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (40 loc) · 1.28 KB
/
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
43
44
45
46
47
48
name: build-and-test
on:
push:
workflow_dispatch:
env:
AWS_REGION: 'us-east-1'
AWS_ROLE_TO_ASSUME: 'arn:aws:iam::922513866616:role/Play-Scraper-AWS-Testing'
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: 'GitHub-Actions-Play-Scraper-AWS-Testing'
output-credentials: true
- name: Verify AWS Credentials
run: |
aws sts get-caller-identity
- name: Build and Run Scripted Tests
env:
CREDENTIALS_FROM_ENVIRONMENT: 'true'
AWS_ACCESS_KEY_ID: ${{ steps.creds.outputs.aws-access-key-id }}
AWS_SECRET_KEY: ${{ steps.creds.outputs.aws-secret-access-key }}
AWS_SESSION_TOKEN: ${{ steps.creds.outputs.aws-session-token }}
run: |
sbt -v playScrapeServer/publishLocal
sbt -v playScrape/scripted