From d4ee037478e252a36c794d3785990ed0c363f7a2 Mon Sep 17 00:00:00 2001 From: ElytrA8 Date: Sun, 29 Nov 2020 06:47:30 +0530 Subject: [PATCH] initialized nondocker workflow Signed-off-by: ElytrA8 --- .github/workflows/nd.yml | 68 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/nd.yml diff --git a/.github/workflows/nd.yml b/.github/workflows/nd.yml new file mode 100644 index 000000000..942c22f8c --- /dev/null +++ b/.github/workflows/nd.yml @@ -0,0 +1,68 @@ +name: setting up environment + +on: [push] + +env: + username: Area69Lab +jobs: + build: + runs-on: ubuntu-18.04 + + steps: + - name: Checkout + uses: actions/checkout@main + + - name: initialization + continue-on-error: true + run: | + sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d + docker rmi `docker images -q` + sudo apt-get remove account-plugin-facebook account-plugin-flickr account-plugin-jabber account-plugin-salut account-plugin-twitter account-plugin-windows-live account-plugin-yahoo aisleriot brltty duplicity empathy empathy-common example-content gnome-accessibility-themes gnome-contacts gnome-mahjongg gnome-mines gnome-orca gnome-screensaver gnome-sudoku gnome-video-effects gnomine landscape-common libreoffice-avmedia-backend-gstreamer libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk libreoffice-impress libreoffice-math libreoffice-ogltrans libreoffice-pdfimport libreoffice-style-galaxy libreoffice-style-human libreoffice-writer libsane libsane-common mcp-account-manager-uoa python3-uno rhythmbox rhythmbox-plugins rhythmbox-plugin-zeitgeist sane-utils shotwell shotwell-common telepathy-gabble telepathy-haze telepathy-idle telepathy-indicator telepathy-logger telepathy-mission-control-5 telepathy-salut totem totem-common totem-plugins printer-driver-brlaser printer-driver-foo2zjs printer-driver-foo2zjs-common printer-driver-m2300w printer-driver-ptouch printer-driver-splix + git config --global user.name "ElytrA8" + git config --global user.email "manofuranium@gmail.com" + sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* php* + sudo -E apt-get clean + sudo apt install expect -y + + - name: cloning repo + continue-on-error: true + run: | + expect -c " + spawn git clone ${{ secrets.REPO }} source + expect \"Username\" + send \"${{ secrets.GHUSER }}\r\" + expect \"Password\" + send \"${{ secrets.GHPASS }}\r\" + set timeout -1 + catch wait result + interact" + - name: compilation + continue-on-error: true + run: | + ls + cd source + npm install + - name: running Docker + timeout-minutes: 340 + continue-on-error: true + run: | + cd source + node server + - name: Loop workflow + continue-on-error: true + run: | + git clone https://github.com/$username/shellbot-workflow loop + cd loop + echo "1" >> loop.txt + git add loop.txt + git commit -m "Workflow : Loop" + expect -c " + spawn git push -f + expect \"Username\" + send \"${{ secrets.GHUSER }}\r\" + expect \"Password\" + send \"${{ secrets.GHPASS }}\r\" + expect \"main -> main\" + set timeout -10 + interact" +