fix syntax #40
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: Automated Tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.17' | |
- name: Start selenoid (Selenium server) | |
run: curl -s https://aerokube.com/cm/bash | bash && ./cm selenoid start --browsers chrome;safari --last-versions 1 | |
- name: Install dependencies | |
run: npm ci | |
- name: Create Service Account key for Firebase | |
run: echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}' > gcloud.json | |
- name: Run tests with safari and chrome | |
run: SELENIUM_REMOTE_URL="http://localhost:4444/wd/hub" SELENIUM_BROWSER=safari npm test && SELENIUM_REMOTE_URL="http://localhost:4444/wd/hub" SELENIUM_BROWSER=chrome npm test | |
env: | |
TOKEN: ${{ secrets.TOKEN }} | |
GOOGLE_APPLICATION_CREDENTIALS: "gcloud.json" | |
MERCHANTID: ${{ secrets.MERCHANTID }} | |
MERCHANTPUBLIC: ${{ secrets.MERCHANTPUBLIC }} | |
MERCHANTPRIVATE: ${{ secrets.MERCHANTPRIVATE }} |