Skip to content

Commit

Permalink
ci(test): πŸ‘·β€ add unit test to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-cristino committed Mar 8, 2024
1 parent 530d705 commit f25eec0
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,32 @@ on:
pull_request:

jobs:
unit_test:
runs-on: ubuntu-latest
name: πŸ§ͺ unit test
steps:
- name: πŸ›ŽοΈ Checkout
uses: actions/checkout@v4
- name: ⏬ Install Zenroom
run: |
wget https://github.com/dyne/zenroom/releases/latest/download/zenroom -O zenroom
chmod +x zenroom
sudo cp zenroom /usr/local/bin
- name: 🚨 Run test
run: make unit-test
api_test:
runs-on: ubuntu-latest
name: πŸ§ͺ VCI API Tests
steps:
- uses: actions/checkout@v3
- run: make &
- run: npx stepci run "tests/credential_issuer.yml"
- name: πŸ›ŽοΈ Checkout
uses: actions/checkout@v3
- name: πŸ—οΈ build
run: make &
- name: 🚨 Run api test
run: npx stepci run "tests/credential_issuer.yml"
publish_docker_image:
needs: api_test
name: 🐳 publish docker image
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
uses: interfacerproject/workflows/.github/workflows/publish-ghcr.yml@main
secrets: inherit

0 comments on commit f25eec0

Please sign in to comment.