fix: googletag.display errors when ad slot not in DOM #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: Development workflow | |
on: | |
pull_request: | |
branches: | |
- master | |
- next | |
- beta | |
types: [opened, synchronize, reopened] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Detect Node version | |
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT | |
id: nvmrc | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '${{ steps.nvmrc.outputs.version }}' | |
- name: Install npm packages | |
run: yarn --frozen-lockfile | |
- name: Run unit Tests | |
run: yarn test --coverage | |
- name: Run end-to-end tests | |
uses: cypress-io/github-action@v2 | |
with: | |
build: yarn build:instrumented | |
start: yarn storybook:instrumented | |
- name: Prepare combined coverage report (unit + E2E tests) | |
run: yarn build:coverage | |
- name: Report code coverage | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |