1
0
mirror of synced 2026-01-02 03:04:13 -05:00
Files
docs/.github/workflows/browser-test.yml
Chiedo John 68ca82f227 Move from paths-ignore to paths to be less confusing (#16040)
* Move from paths-ignore to paths to be less confusing

* Include feature flags

* Make sure test and browser workflows run fully when changed

Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
2020-10-15 09:48:40 -04:00

41 lines
1.4 KiB
YAML

name: Browser Tests
on:
workflow_dispatch:
push:
jobs:
see_if_should_skip:
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@a12175f6209d4805b5a163d723270be2a0dc7b36
with:
cancel_others: 'false'
github_token: ${{ github.token }}
paths: '[".github/workflows/browser-test.yml","assets/**", "content/**", "data/**", "includes/**", "javascripts/**", "jest-puppeteer.config.js", "jest.config.js", "layouts/**", "lib/**", "middleware/**", "package-lock.json", "package.json", "server.js", "translations/**", "webpack.config.js"]'
build:
needs: see_if_should_skip
runs-on: ubuntu-latest
steps:
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
# Even if if doesn't do anything
- if: ${{ needs.see_if_should_skip.outputs.should_skip == 'false' }}
name: Checkout
uses: actions/checkout@v2
- if: ${{ needs.see_if_should_skip.outputs.should_skip == 'false' }}
name: Install
uses: ianwalter/puppeteer@3.0.0
with:
args: npm ci
- if: ${{ needs.see_if_should_skip.outputs.should_skip == 'false' }}
name: Test
uses: ianwalter/puppeteer@3.0.0
with:
args: npm run browser-test