badges
This commit is contained in:
parent
bbd4c893d9
commit
4a9e9a6c44
3 changed files with 2 additions and 0 deletions
38
.forgejo/workflows/forgejo.yaml
Normal file
38
.forgejo/workflows/forgejo.yaml
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
name: Test Forgejo setup
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
TEST_URL: berlin.ccc.de
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: debian-stable
|
||||||
|
name: Test setup
|
||||||
|
steps:
|
||||||
|
- name: Check env
|
||||||
|
run: env
|
||||||
|
- name: Install tools
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y --no-install-recommends curl ca-certificates inetutils-ping iproute2 git
|
||||||
|
- name: Check resolv.conf
|
||||||
|
run: cat /etc/resolv.conf
|
||||||
|
- name: Check IP config
|
||||||
|
run: ip address
|
||||||
|
- name: Check IPv4 route
|
||||||
|
run: ip -4 route
|
||||||
|
- name: Check IPv6 route
|
||||||
|
run: ip -6 route
|
||||||
|
- name: Check IPv4 internet
|
||||||
|
run: ping -c4 1.1.1.1
|
||||||
|
- name: Check IPv6 internet
|
||||||
|
run: ping6 -c4 2606:4700:4700::1111
|
||||||
|
- name: Check IPv4 HTTP
|
||||||
|
run: curl -4 -vfSLo /dev/null ${{ env.TEST_URL }}
|
||||||
|
- name: Check IPv6 HTTP
|
||||||
|
run: curl -6 -vfSLo /dev/null ${{ env.TEST_URL }}
|
||||||
|
- name: Check out the repository
|
||||||
|
run: git clone ${{ env.FORGEJO_SERVER_URL }}/${{ env.FORGEJO_REPOSITORY }} .
|
||||||
22
.forgejo/workflows/nix.yaml
Normal file
22
.forgejo/workflows/nix.yaml
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
name: Test Nix flake
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
nix:
|
||||||
|
runs-on: nix-latest
|
||||||
|
name: Test nix flake
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
run: git clone ${{ env.FORGEJO_SERVER_URL }}/${{ env.FORGEJO_REPOSITORY }} .
|
||||||
|
- name: Run formatter
|
||||||
|
run: nix fmt
|
||||||
|
- name: Check flake
|
||||||
|
run: nix flake check
|
||||||
|
- name: Show metadata
|
||||||
|
run: nix flake metadata
|
||||||
|
- name: Show content
|
||||||
|
run: nix flake show
|
||||||
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
[](https://nogithub.codeberg.page)
|
[](https://nogithub.codeberg.page)
|
||||||
|
[](https://git.berlin.ccc.de/xengi/infra/actions/workflows/forgejo.yaml)
|
||||||
|
[](https://git.berlin.ccc.de/xengi/infra/actions/workflows/nix.yaml)
|
||||||
|
|
||||||
# Nix based CCCB infra
|
# Nix based CCCB infra
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue