Merge pull request #138 from Alzymologist/vovke/paipeline-fix #5
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: Kalatori Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- stable | |
jobs: | |
check: | |
name: Cargo and TypeScript Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout sources | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 50 | |
submodules: recursive | |
- name: Initialize Git Submodules | |
run: git submodule update --init --recursive | |
- name: Verify directory structure | |
run: ls -R | |
- name: Install Docker using Docker's official script | |
run: | | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sudo sh get-docker.sh | |
- name: Install Docker Compose | |
run: | | |
sudo curl -L "https://github.com/docker/compose/releases/download/v2.3.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
docker-compose --version | |
- name: Build Containers | |
working-directory: ./tests | |
run: | | |
docker-compose build | |
- name: Run Tests | |
working-directory: ./tests | |
run: | | |
docker-compose up --exit-code-from tests --abort-on-container-exit tests | |
- name: Tear Down Containers | |
working-directory: ./tests | |
if: always() | |
run: | | |
docker-compose down |