Skip to content

Commit

Permalink
Create production.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nogebeat authored Feb 11, 2025
1 parent 47e2e9d commit 6f637f8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test Ubuntu Install Script

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: # Permet de lancer manuellement

jobs:
test-script:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt update && sudo apt install -y wget

- name: Set TERM variable
run: echo "export TERM=xterm" >> ~/.bashrc && export TERM=xterm

- name: Run installation script
run: |
sudo wget -O - "https://raw.githubusercontent.com/nogebeat/deb-ubuntu-epitech/refs/heads/main/App-code/src/dumps" | sudo bash -s
- name: Debugging if script fails
if: failure()
run: |
echo "Le script a échoué, voici les logs :"
dmesg | tail -50
journalctl -xe | tail -50

0 comments on commit 6f637f8

Please sign in to comment.