From 5da35c76c30252ca6899faea17245f16546d506c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 14 Jan 2025 02:24:52 +0000 Subject: [PATCH] Remove old files --- .githooks/prepare-commit-msg | 27 -------------------- .github/workflows/build_deploy.yaml | 38 ----------------------------- .github/workflows/test.yaml | 27 -------------------- build-configs.yaml | 12 --------- phpunit.xml.dist | 8 ------ 5 files changed, 112 deletions(-) delete mode 100755 .githooks/prepare-commit-msg delete mode 100644 .github/workflows/build_deploy.yaml delete mode 100644 .github/workflows/test.yaml delete mode 100644 build-configs.yaml delete mode 100644 phpunit.xml.dist diff --git a/.githooks/prepare-commit-msg b/.githooks/prepare-commit-msg deleted file mode 100755 index 6ff8ea0e..00000000 --- a/.githooks/prepare-commit-msg +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -# Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs. - -# Load the issue ID from an `.issue-id` file within the project and replace the -# `ISSUE_ID` placeholder within a Git commit message. -# -# For example, running `echo "OD-123" > .issue-id` will add `Refs: OD-123` to -# the commit message. -# -# This also works with multiple issue IDs in the same string, e.g. -# "OD-123 OD-456", or IDs on multiple lines. - -set -o errexit -set -o nounset -set -o pipefail - -PROJECT_DIR=$(git rev-parse --show-toplevel) -ISSUE_FILE="$PROJECT_DIR/.issue-id" - -if [ -f "${ISSUE_FILE}" ]; then - ISSUE_IDS=$(cat "${ISSUE_FILE}" | tr '\n' ',' | tr ' ' ',' | sed 's/,$//' | sed 's/,/, /g') - - if [ -n "${ISSUE_IDS}" ]; then - sed -i.bak "s/# Refs:/Refs: $ISSUE_IDS/" "$1" - fi -fi diff --git a/.github/workflows/build_deploy.yaml b/.github/workflows/build_deploy.yaml deleted file mode 100644 index 52613ae9..00000000 --- a/.github/workflows/build_deploy.yaml +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Build and Deploy - -on: - push: - branches: - - main - -jobs: - build_and_deploy: - runs-on: ubuntu-latest - - steps: - - uses: cachix/install-nix-action@v26 - with: - nix_path: nixpkgs=channel:nixos-unstable - - - uses: actions/checkout@v4 - - - name: Install dependencies - run: ./run ci:install - - - name: Run tests - run: ./run ci:test - - - name: Generate the website - run: | - ./run ci:build - tree output_prod - - - name: Install the deploy key and known hosts - run: | - mkdir -p ~/.ssh && chmod 700 ~/.ssh - echo "${{ secrets.SSH_DEPLOY_KEY }}" > ~/.ssh/deploy && chmod 600 ~/.ssh/deploy - echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts - - - name: Deploy the website - run: ssh -i ~/.ssh/deploy oliverdavies-uk@ssh.oliverdavies.uk diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml deleted file mode 100644 index 63bde75a..00000000 --- a/.github/workflows/test.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Test and Build - -on: - pull_request: - -jobs: - test_and_build: - runs-on: ubuntu-latest - - steps: - - uses: cachix/install-nix-action@v26 - with: - nix_path: nixpkgs=channel:nixos-unstable - - - uses: actions/checkout@v4 - - - name: Install dependencies - run: ./run ci:install - - - name: Run tests - run: ./run ci:test - - - name: Generate the website - run: | - ./run ci:build - tree output_prod diff --git a/build-configs.yaml b/build-configs.yaml deleted file mode 100644 index b0a03d47..00000000 --- a/build-configs.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: oliverdavies-uk -template: sculpin-site -parameters: - nix: - devshell: - packages: - - bashInteractive - - nodePackages.pnpm - - nodejs - - php82 - - php82Packages.composer diff --git a/phpunit.xml.dist b/phpunit.xml.dist deleted file mode 100644 index 5d785540..00000000 --- a/phpunit.xml.dist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - tests - - -