Skip to content

Commit

Permalink
Merge branch 'develop' into sps_update_logback_dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
salonishah11 committed Dec 21, 2023
2 parents 3a1047c + 70d3eb9 commit 76182a3
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 21 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
.idea
README.md
target
.travis.yml
*-service-account.json
35 changes: 35 additions & 0 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'Agora Docker build (no push)'

on:
workflow_dispatch:
merge_group:
pull_request:

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Git secrets setup
run: |
git clone https://github.com/awslabs/git-secrets.git ~/git-secrets
cd ~/git-secrets
git checkout ad82d68ee924906a0401dfd48de5057731a9bc84
sudo make install
shell: bash
- name: Secrets check
run: |
sudo ln -s "$(which echo)" /usr/local/bin/say
./minnie-kenny.sh --force
git secrets --scan-history
shell: bash
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11

- name: Build image
run: |
docker build -t agora .
41 changes: 41 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 'Agora unit tests'

on:
workflow_dispatch: #Manual trigger from GitHub UI
push:
merge_group:
pull_request:

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3 # Checkout the Agora repo
- name: Git secrets setup
run: |
git clone https://github.com/awslabs/git-secrets.git ~/git-secrets
cd ~/git-secrets
git checkout ad82d68ee924906a0401dfd48de5057731a9bc84
sudo make install
shell: bash
- name: Secrets check
run: |
sudo ln -s "$(which echo)" /usr/local/bin/say
./minnie-kenny.sh --force
git secrets --scan-history
shell: bash
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11

# Testcontainers does not seem to be able to pull the containers on its own if the image is not present
- name: Run tests
run: |
docker pull mongo:4.4
docker pull testcontainersofficial/ryuk:0.3.0
./minnie-kenny.sh --force
git secrets --scan-history
sbt clean coverage test coverageReport
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

0 comments on commit 76182a3

Please sign in to comment.