Skip to content

Commit

Permalink
Merge pull request #13 from Brain-Defrost/tednaphil-patch-1
Browse files Browse the repository at this point in the history
Create CI_CD workflow
  • Loading branch information
tednaphil authored May 9, 2024
2 parents 09b357b + 58bc663 commit be0707e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/CI_CD
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI and CD

on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches:
-main
pull_request:
branches:
-main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
cypress-run:
runs-on: ubuntu-latest
environment: Test
steps:
- name: Checkout
uses: actions/checkout@v4
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v6 # use the explicit version number
with:
build: npm run build
start: npm start
deploy:
runs-on: ubuntu-latest
needs: cypress-run
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit be0707e

Please sign in to comment.