This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
Service and GitHub action for running imgsrv tests #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
# Run tests | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Out Repository | |
uses: actions/checkout@v3 | |
- name: Log in to package registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- name: Dependency Setup | |
run: ./setup.sh SSH | |
- name: Docker Setup | |
run: docker-compose build | |
- name: Run tests | |
run: docker-compose run test |