Kope parsing enhancement #213
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: CI & CD | |
on: [push, pull_request] | |
env: | |
MIRROR_URL: "[email protected]:EpitechPromo2026/B-FUN-500-TLS-5-2-glados-aurelien.masset.git" | |
jobs: | |
check_can_build: | |
name: Check build status using stack | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Build project | |
shell: bash | |
run: | | |
stack build | |
exit $? | |
run_tests: | |
name: Run tests using stack test | |
needs: check_can_build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Run stack test | |
shell: bash | |
run: | | |
stack test | |
exit $? | |
mirroring_to_github: | |
name: Mirror to Epitech's github repository | |
needs: run_tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Push commit/pull request | |
uses: pixta-dev/repository-mirroring-action@v1 | |
with: | |
target_repo_url: | |
${{ env.MIRROR_URL }} | |
ssh_private_key: | |
${{ secrets.SSH_PRIVATE_KEY }} |