Skip to content

Commit

Permalink
Testing out Actions instead of Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
LaCuneta committed Sep 26, 2023
1 parent e6e6318 commit ef9b8a9
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 51 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: build-and-test

on:
push:
workflow_dispatch:

env:
CREDENTIALS_FROM_ENVIRONMENT: 'true'
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: Publish and Run Scripted Tests
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }}
aws-access-key-id: ${{ steps.creds.outputs.aws-access-key-id }}
aws-secret-access-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
51 changes: 0 additions & 51 deletions Jenkinsfile

This file was deleted.

0 comments on commit ef9b8a9

Please sign in to comment.