Skip to content

Commit

Permalink
Try making Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
aednichols committed Dec 21, 2023
1 parent 56be82f commit 628cc0d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 'Agora unit tests'

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

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@v3
with:
distribution: temurin
java-version: 11
- name: Run tests
run: |
sbt clean coverage test coverageReport

0 comments on commit 628cc0d

Please sign in to comment.