chore(deps): update github/codeql-action digest to 5b6282e #2523
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: CI - Cypress (e2e) tests | |
on: | |
push: | |
branches-ignore: | |
- renovate/** | |
pull_request: | |
jobs: | |
cypress-run: | |
name: E2E | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [18.x] | |
browsers: [chrome, firefox] | |
languages: [english, chinese, espanol] | |
env: | |
BUILD_LANG: ${{ matrix.languages }} | |
ENGLISH_GHOST_API_URL: ${{ secrets.CI_ENGLISH_GHOST_API_URL }} | |
ENGLISH_GHOST_API_VERSION: ${{ secrets.CI_ENGLISH_GHOST_API_VERSION }} | |
ENGLISH_GHOST_CONTENT_API_KEY: ${{ secrets.CI_ENGLISH_GHOST_CONTENT_API_KEY }} | |
CHINESE_GHOST_API_URL: ${{ secrets.CI_CHINESE_GHOST_API_URL }} | |
CHINESE_GHOST_API_VERSION: ${{ secrets.CI_CHINESE_GHOST_API_VERSION }} | |
CHINESE_GHOST_CONTENT_API_KEY: ${{ secrets.CI_CHINESE_GHOST_CONTENT_API_KEY }} | |
ESPANOL_GHOST_API_URL: ${{ secrets.CI_ESPANOL_GHOST_API_URL }} | |
ESPANOL_GHOST_API_VERSION: ${{ secrets.CI_ESPANOL_GHOST_API_VERSION }} | |
ESPANOL_GHOST_CONTENT_API_KEY: ${{ secrets.CI_ESPANOL_GHOST_CONTENT_API_KEY }} | |
ADS_ENABLED: true | |
GOOGLE_ADSENSE_DATA_AD_CLIENT: ca-pub-1234567890 | |
GOOGLE_ADSENSE_DATA_AD_SLOT: 1234567890 | |
POSTS_PER_PAGE: ${{ secrets.POSTS_PER_PAGE }} | |
SITE_DOMAIN: localhost:8080 | |
LOCALE_FOR_UI: ${{ matrix.languages }} | |
LOCALE_FOR_GHOST: ${{ matrix.languages }} | |
steps: | |
# Remove this step after firefox launches 106 (hopefully it's fixed by then) | |
- name: Downgrade Firefox | |
run: | | |
curl https://ftp.mozilla.org/pub/firefox/releases/103.0/linux-x86_64/en-US/firefox-103.0.tar.bz2 --output firefox-103.0.tar.bz2 | |
tar -xjf firefox-103.0.tar.bz2 | |
sudo mv firefox /opt/ | |
sudo mv /usr/bin/firefox /usr/bin/firefox_old | |
sudo ln -s /opt/firefox/firefox /usr/bin/firefox | |
- name: Checkout source files | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Login to Docker Hub | |
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} | |
- name: Start Ghost containers | |
run: npm run start:containers | |
- name: Start CI server and run Cypress | |
uses: cypress-io/github-action@v4 | |
with: | |
start: npm run start:ci:${{ matrix.languages }} | |
wait-on: http://localhost:8080 | |
wait-on-timeout: 1200 | |
browser: ${{ matrix.browsers }} | |
headless: true | |
spec: cypress/e2e/${{ matrix.languages }}/**/* | |
- name: Stop Ghost containers | |
run: npm run stop:containers |