2024-10-30 01:50:12 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
workflow_dispatch:
|
2024-10-29 18:47:44 +03:00
|
|
|
jobs:
|
|
|
|
test:
|
2024-11-10 21:58:37 +03:00
|
|
|
runs-on: docker
|
2024-11-10 22:14:42 +03:00
|
|
|
container:
|
|
|
|
image: bitnami/minideb:bullseye-arm64
|
2024-11-10 21:59:30 +03:00
|
|
|
steps:
|
2024-11-10 22:17:07 +03:00
|
|
|
- name: Dependencies
|
|
|
|
run: |
|
2024-11-10 22:20:26 +03:00
|
|
|
apt update -y
|
2024-11-10 23:16:14 +03:00
|
|
|
apt install git wget inetutils-ping dnsutils -y
|
2024-11-10 22:29:29 +03:00
|
|
|
git --version
|
2024-11-10 22:17:07 +03:00
|
|
|
|
2024-11-10 22:47:54 +03:00
|
|
|
- name: CI Health Check
|
2024-11-10 22:37:20 +03:00
|
|
|
run: |
|
2024-11-10 22:47:54 +03:00
|
|
|
ping -c 1 asandikci.com
|
|
|
|
ping -c 1 git.asandikci.com
|
2024-11-10 23:11:07 +03:00
|
|
|
dig asandikci.com
|
|
|
|
dig git.asandikci.com
|
2024-11-10 22:37:20 +03:00
|
|
|
wget https://git.asandikci.com
|
2024-11-10 22:47:54 +03:00
|
|
|
pwd
|
2024-11-10 22:51:02 +03:00
|
|
|
ls -la
|
2024-11-10 22:55:20 +03:00
|
|
|
whoami
|
2024-11-10 22:37:20 +03:00
|
|
|
|
2024-11-10 22:11:56 +03:00
|
|
|
- name: Checkout
|
2024-11-10 22:25:26 +03:00
|
|
|
run: |
|
2024-11-10 22:58:26 +03:00
|
|
|
export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
|
2024-11-10 22:55:20 +03:00
|
|
|
#git config --global init.defaultBranch main
|
2024-11-10 23:03:43 +03:00
|
|
|
#git init
|
2024-11-10 22:44:29 +03:00
|
|
|
git clone https://git.asandikci.com/asandikci.com/web.git
|
2024-11-10 22:25:26 +03:00
|
|
|
git checkout main
|
|
|
|
|
|
|
|
- name: Setup Ruby
|
2024-11-10 22:28:04 +03:00
|
|
|
uses: https://github.com/ruby/setup-ruby@v1
|
2024-11-10 22:11:56 +03:00
|
|
|
with:
|
2024-11-10 22:25:26 +03:00
|
|
|
ruby-version: 3.2
|
|
|
|
bundler-cache: true
|