forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to reduce uneeded test runs (github#16015)
* Reduce unneeded test runs - Attempt to make the skip logic work w/ required checks - Move pa11y to cron schedule - Make browser test conditional Co-authored-by: Zeke Sikelianos <[email protected]> Co-authored-by: Jason Etcovitch <[email protected]>
- Loading branch information
1 parent
e097e88
commit c76bf47
Showing
4 changed files
with
74 additions
and
19 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ module.exports = [ | |
'crowdin/[email protected]', | ||
'dawidd6/action-delete-branch@v3', | ||
'docker://chinthakagodawita/autoupdate-action:v1', | ||
'fkirc/skip-duplicate-actions@a12175f6209d4805b5a163d723270be2a0dc7b36', | ||
'github/codeql-action/analyze@v1', | ||
'github/codeql-action/init@v1', | ||
'ianwalter/[email protected]', | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,16 +5,36 @@ on: | |
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: '["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: | ||
- name: Checkout | ||
# 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 | ||
- name: Install | ||
|
||
- if: ${{ needs.see_if_should_skip.outputs.should_skip == 'false' }} | ||
name: Install | ||
uses: ianwalter/[email protected] | ||
with: | ||
args: npm ci | ||
- name: Test | ||
|
||
- if: ${{ needs.see_if_should_skip.outputs.should_skip == 'false' }} | ||
name: Test | ||
uses: ianwalter/[email protected] | ||
with: | ||
args: npm run browser-test |
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
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