diff --git a/.github/workflows/Semgrep.yml b/.github/workflows/Semgrep.yml deleted file mode 100644 index 0347afd..0000000 --- a/.github/workflows/Semgrep.yml +++ /dev/null @@ -1,48 +0,0 @@ -# Name of this GitHub Actions workflow. -name: Semgrep - -on: - # Scan changed files in PRs (diff-aware scanning): - # The branches below must be a subset of the branches above - pull_request: - branches: ["master", "main"] - push: - branches: ["master", "main"] - schedule: - - cron: '0 6 * * *' - - -permissions: - contents: read - -jobs: - semgrep: - # User definable name of this GitHub Actions job. - permissions: - contents: read # for actions/checkout to fetch code - security-events: write # for github/codeql-action/upload-sarif to upload SARIF results - name: semgrep/ci - # If you are self-hosting, change the following `runs-on` value: - runs-on: ubuntu-latest - - container: - # A Docker image with Semgrep installed. Do not change this. - image: returntocorp/semgrep - - # Skip any PR created by dependabot to avoid permission issues: - if: (github.actor != 'dependabot[bot]') - - steps: - # Fetch project source with GitHub Actions Checkout. - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - # Run the "semgrep ci" command on the command line of the docker image. - - run: semgrep ci --sarif --output=semgrep.sarif - env: - # Add the rules that Semgrep uses by setting the SEMGREP_RULES environment variable. - SEMGREP_RULES: p/default # more at semgrep.dev/explore - - - name: Upload SARIF file for GitHub Advanced Security Dashboard - uses: github/codeql-action/upload-sarif@6c089f53dd51dc3fc7e599c3cb5356453a52ca9e # v2.20.0 - with: - sarif_file: semgrep.sarif - if: always() \ No newline at end of file diff --git a/.github/workflows/percy.yml b/.github/workflows/percy.yml new file mode 100644 index 0000000..a59e523 --- /dev/null +++ b/.github/workflows/percy.yml @@ -0,0 +1,39 @@ +# .github/workflows/percy.yml +name: Percy Visual Tests + +on: + push: + branches: + - master # Your remote default branch is 'master' + + pull_request: + branches: + - master # PRs targeting your 'master' branch + +jobs: + visual-tests: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install dependencies + run: npm install + + # Add this new step to install Percy CLI globally + - name: Install Percy CLI + run: npm install -g @percy/cli + + - name: Install latest Chromedriver (for Chrome) + run: npm install chromedriver@latest + + - name: Run Percy Visual Tests + env: + PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} + run: percy exec -- npm run test \ No newline at end of file diff --git a/index.html b/index.html index 4302d31..07de875 100644 --- a/index.html +++ b/index.html @@ -29,7 +29,7 @@

todos

Completed - +