diff --git a/.github/workflows/azure-static-web-apps-white-water-047c71203.yml b/.github/workflows/azure-static-web-apps-white-water-047c71203.yml index 5bbdf09..3fc16a0 100644 --- a/.github/workflows/azure-static-web-apps-white-water-047c71203.yml +++ b/.github/workflows/azure-static-web-apps-white-water-047c71203.yml @@ -1,46 +1,46 @@ -name: Azure Static Web Apps CI/CD - -on: - push: - branches: - - main - pull_request: - types: [opened, synchronize, reopened, closed] - branches: - - main - -jobs: - build_and_deploy_job: - if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') - runs-on: ubuntu-latest - name: Build and Deploy Job - steps: - - uses: actions/checkout@v3 - with: - submodules: true - lfs: false - - name: Build And Deploy - id: builddeploy - uses: Azure/static-web-apps-deploy@v1 - with: - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_WATER_047C71203 }} - repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) - action: "upload" - ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### - # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig - app_location: "/" # App source code path - api_location: "build/server" # Api source code path - optional - output_location: "build" # Built app content directory - optional - ###### End of Repository/Build Configurations ###### - - close_pull_request_job: - if: github.event_name == 'pull_request' && github.event.action == 'closed' - runs-on: ubuntu-latest - name: Close Pull Request Job - steps: - - name: Close Pull Request - id: closepullrequest - uses: Azure/static-web-apps-deploy@v1 - with: - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_WATER_047C71203 }} - action: "close" +name: Azure Static Web Apps CI/CD + +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened, closed] + branches: + - main + +jobs: + build_and_deploy_job: + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') + runs-on: ubuntu-latest + name: Build and Deploy Job + steps: + - uses: actions/checkout@v3 + with: + submodules: true + lfs: false + - name: Build And Deploy + id: builddeploy + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_WATER_047C71203 }} + repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) + action: "upload" + ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### + # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig + app_location: "/" # App source code path + api_location: "build/server" # Api source code path - optional + output_location: "build" # Built app content directory - optional + ###### End of Repository/Build Configurations ###### + + close_pull_request_job: + if: github.event_name == 'pull_request' && github.event.action == 'closed' + runs-on: ubuntu-latest + name: Close Pull Request Job + steps: + - name: Close Pull Request + id: closepullrequest + uses: Azure/static-web-apps-deploy@v1 + with: + azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_WHITE_WATER_047C71203 }} + action: "close" diff --git a/.github/workflows/build.yml b/.github/workflows/building.yml similarity index 100% rename from .github/workflows/build.yml rename to .github/workflows/building.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index c1284f1..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: "Deploying" - -on: - pull_request: - types: [closed] - branches: - - "main" - -jobs: - build_site: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: "recursive" - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: npm - - - name: Install dependencies - run: npm install - - - name: Build - env: - BASE_PATH: "/${{ github.event.repository.name }}" - run: npm run build - - - name: Upload Artifacts - uses: actions/upload-pages-artifact@v3 - with: - path: "build/" - - deploy: - needs: build_site - runs-on: ubuntu-latest - - permissions: - pages: write - id-token: write - - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - - steps: - - name: Deploy - id: deployment - uses: actions/deploy-pages@v4 diff --git a/.github/workflows/prettier.yml b/.github/workflows/formatting.yml similarity index 100% rename from .github/workflows/prettier.yml rename to .github/workflows/formatting.yml diff --git a/.github/workflows/eslint.yml b/.github/workflows/linting.yml similarity index 89% rename from .github/workflows/eslint.yml rename to .github/workflows/linting.yml index a771b05..2880098 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/linting.yml @@ -27,3 +27,6 @@ jobs: - name: Linting run: npm run lint + + - name: Type-Checking + run: npm run check diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml deleted file mode 100644 index a2fd69f..0000000 --- a/.github/workflows/preview.yml +++ /dev/null @@ -1,70 +0,0 @@ -name: "Preview" - -on: - pull_request: - types: [opened, synchronize, reopened] - -jobs: - build_preview: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - submodules: "recursive" - token: ${{ secrets.GITHUB_TOKEN }} - - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: npm - - - name: Install dependencies - run: npm install - - - name: Build - env: - BASE_PATH: "/${{ github.event.repository.name }}/preview/pr-${{ github.event.number }}" - run: npm run build - - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: preview - path: build - - deploy_preview: - needs: build_preview - runs-on: ubuntu-latest - permissions: - pages: write - id-token: write - pull-requests: write - steps: - - name: Download preview artifact - uses: actions/download-artifact@v4 - with: - name: preview - path: preview/pr-${{ github.event.number }} - - - name: Upload combined artifact - uses: actions/upload-pages-artifact@v3 - with: - path: . - - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 - - - name: Create PR comment - uses: actions/github-script@v7 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/'); - const previewUrl = `${{ steps.deployment.outputs.page_url }}preview/pr-${{ github.event.number }}/`; - await github.rest.issues.createComment({ - owner: owner, - repo: repo, - issue_number: context.issue.number, - body: `🚀 Github Pages Preview: ${previewUrl}` - }); diff --git a/.github/workflows/playwright.yml b/.github/workflows/testing.yml similarity index 100% rename from .github/workflows/playwright.yml rename to .github/workflows/testing.yml diff --git a/.github/workflows/type_check.yml b/.github/workflows/type_check.yml deleted file mode 100644 index cd594da..0000000 --- a/.github/workflows/type_check.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: "Type-Checking" - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - format-check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.ref }} - fetch-depth: 0 - - - uses: actions/setup-node@v4 - with: - node-version: "20.13" - cache: "npm" - - - name: Install modules - run: npm ci - - - name: Type-Checking - run: npm run check diff --git a/package-lock.json b/package-lock.json index 40c1198..60f7604 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ebd.hochfrequenz.de", - "version": "0.0.1", + "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ebd.hochfrequenz.de", - "version": "0.0.1", + "version": "0.1.0", "hasInstallScript": true, "dependencies": { "@auth0/auth0-spa-js": "^2.1.3" diff --git a/package.json b/package.json index 6285f5d..b1f1212 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ebd.hochfrequenz.de", - "version": "0.0.1", + "version": "0.1.0", "private": true, "scripts": { "start": "vite dev --open", diff --git a/static/.nojekyll b/static/.nojekyll deleted file mode 100644 index e69de29..0000000