Try setting custom CORS headers #3
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] | |
jobs: | |
run-cypress-tests: | |
runs-on: ubuntu-latest | |
# container: | |
#image: cypress/browsers:node18.12.0-chrome106-ff106 | |
# options: --user 1001 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cypress install | |
uses: cypress-io/github-action@v6 | |
with: | |
runTests: false | |
- name: Save build folder | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build | |
if-no-files-found: error | |
path: dist | |
- run: yarn cypress info | |
- run: node --version | |
- run: node -p 'os.cpus()' | |
- run: yarn types | |
- name: Install Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '18.16.1' | |
- name: Install dependencies | |
run: yarn install | |
#- name: Set up Python | |
#uses: actions/setup-python@v2 | |
#with: | |
# python-version: 3.11 | |
- name: Integrate Shipyard | |
uses: shipyard/github-action/fetch-shipyard-env@1.0.1 | |
with: | |
api-token: ${{ secrets.SHIPYARD_API_TOKEN }} | |
timeout-minutes: "10" | |
app-name: "cypress-realworld-app" | |
- name: Print Env Data | |
run: | | |
echo "CYPRESS_BASE_URL=${SHIPYARD_ENVIRONMENT_URL}" >> $GITHUB_ENV | |
echo "CYPRESS_BYPASS_TOKEN=${SHIPYARD_BYPASS_TOKEN}" >> $GITHUB_ENV | |
env | grep -e SHIPYARD -e CYPRESS | |
shell: bash | |
- name: Run E2E tests against the ephemeral environment | |
run: | | |
echo $SHIPYARD_ENVIRONMENT_URL | |
yarn cypress:run --spec "cypress/tests/shipyard/manage-user.spec.ts" | |
shell: bash | |
env: | |
CYPRESS_BASE_URL: ${{ env.CYPRESS_BASE_URL }} | |
CYPRESS_BYPASS_TOKEN: ${{ env.CYPRESS_BYPASS_TOKEN }} |