From 5b4a63b0353779af237f38d0d03c42a342cb1284 Mon Sep 17 00:00:00 2001 From: Chris Veleris Date: Sat, 1 Nov 2025 08:31:52 +0200 Subject: [PATCH] Add github action flow --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++ .github/workflows/github-pages.yml | 39 ------------------------------ 2 files changed, 33 insertions(+), 39 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/github-pages.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..24c638f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + pull_request: + branches: [ main ] + push: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'npm' + + - name: Install dependencies + run: npm install + + - name: Run linting + run: npm run lint + + - name: Run backend tests + run: npm run backend:test + + - name: Build frontend + run: npm run build diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml deleted file mode 100644 index 659ae5a..0000000 --- a/.github/workflows/github-pages.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: GitHub Pages - -on: - push: - branches: - - main - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow only one concurrent deployment -concurrency: - group: "pages" - cancel-in-progress: true - -jobs: - deploy: - runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Pages - uses: actions/configure-pages@v4 - - name: Build with Jekyll - uses: actions/jekyll-build-pages@v1 - with: - source: ./ - destination: ./_site - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file