build(deps): bump the npm-dependencies group across 1 directory with 6 updates #548
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run e2e Tests | |
on: | |
push: | |
branches: [dev, production] | |
tags: | |
- '*.*.*' | |
pull_request: | |
branches: [dev] | |
jobs: | |
e2e-tests: | |
runs-on: ubuntu-20.04 | |
container: cypress/browsers:node-20.17.0-chrome-128.0.6613.137-1-ff-130.0.1-edge-128.0.2739.67-1 | |
env: | |
VITE_ALGOLIA_APP_ID: ${{ secrets.VITE_ALGOLIA_APP_ID }} | |
VITE_ALGOLIA_API_READ_KEY: ${{ secrets.VITE_ALGOLIA_API_READ_KEY }} | |
VITE_ALGOLIA_INDEX: ${{ secrets.VITE_ALGOLIA_INDEX }} | |
VITE_ALGOLIA_INDEX_ALPHABETICAL_REPLICA: ${{ secrets.VITE_ALGOLIA_INDEX_ALPHABETICAL_REPLICA }} | |
VITE_ALGOLIA_INDEX_LAST_UPDATED_REPLICA: ${{ secrets.VITE_ALGOLIA_INDEX_LAST_UPDATED_REPLICA }} | |
VITE_USER_NODE_ENV: ${{ secrets.VITE_USER_NODE_ENV }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Debug Env | |
run: | | |
echo ${{ secrets.VITE_ALGOLIA_APP_ID }} | |
echo ${{ secrets.VITE_ALGOLIA_API_READ_KEY }} | |
echo ${{ secrets.VITE_ALGOLIA_INDEX }} | |
- uses: marceloprado/[email protected] | |
id: code-changes | |
with: | |
paths: src e2e | |
- name: Run e2e tests | |
if: steps.code-changes.outputs.changed == 'true' | |
uses: cypress-io/[email protected] | |
with: | |
start: npm run dev | |
wait-on: http://127.0.0.1:3001 | |
browser: chrome | |
# - name: Deploy to AWS Testing | |
# uses: zulhfreelancer/[email protected] | |
# if: github.ref == 'refs/heads/v2' | |
# with: | |
# aws-region: "ca-central-1" | |
# aws-access-key: ${{ secrets.AWS_PIPELINE_ACCESS_KEY }} | |
# aws-secret-key: ${{ secrets.AWS_PIPELINE_SECRET_KEY }} | |
# pipeline-name: "v2_pressbooks_directory" | |
- name: Deploy to AWS Dev | |
uses: zulhfreelancer/[email protected] | |
if: github.ref == 'refs/heads/dev' | |
with: | |
aws-region: "ca-central-1" | |
aws-access-key: ${{ secrets.AWS_PIPELINE_ACCESS_KEY }} | |
aws-secret-key: ${{ secrets.AWS_PIPELINE_SECRET_KEY }} | |
pipeline-name: "pressbooks-directory-front-end" | |
- name: Deploy to AWS Production | |
uses: zulhfreelancer/[email protected] | |
if: github.ref == 'refs/heads/production' | |
with: | |
aws-region: "ca-central-1" | |
aws-access-key: ${{ secrets.AWS_PIPELINE_PROD_ACCESS_KEY }} | |
aws-secret-key: ${{ secrets.AWS_PIPELINE_PROD_SECRET_KEY }} | |
pipeline-name: "pressbooks-directory" |