forked from cypress-io/github-action
-
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.
Merge branch 'cypress-io:master' into master
- Loading branch information
Showing
280 changed files
with
85,519 additions
and
186,894 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: 'Add issue/PR to Triage Board' | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
pull_request_target: | ||
types: | ||
- opened | ||
jobs: | ||
add-to-triage-project-board: | ||
# skip in fork | ||
if: github.repository == 'cypress-io/github-action' | ||
uses: cypress-io/cypress/.github/workflows/triage_add_to_project.yml@develop | ||
secrets: inherit |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: check-dist | ||
# | ||
# cypress-io/github-action runs from the dist/ directory | ||
# This workflow ensures that the contents of this directory | ||
# are in sync with the source files by using | ||
# npm run build which in turn calls ncc build | ||
# | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check-dist: | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
# Action runs: using: node20 as defined in | ||
# https://github.com/cypress-io/github-action/blob/master/action.yml | ||
# Node.js minor version is aligned to | ||
# https://github.com/actions/runner/blob/main/src/Misc/externals.sh | ||
node-version: 20.18.0 | ||
- run: npm ci | ||
- run: npm run format | ||
- run: npm run build | ||
|
||
- name: Compare the expected and actual dist/ directories | ||
run: | | ||
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then | ||
echo "Detected uncommitted changes after build. See status below:" | ||
git diff | ||
exit 1 | ||
fi |
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
Oops, something went wrong.