Skip to content

Commit

Permalink
Generated tests improvements (#3)
Browse files Browse the repository at this point in the history
* WIP - pre-push test

* Revert "WIP - pre-push test"

This reverts commit 42b40d6

* adding tests folder level .gitignore

* after untrack

* added additional command to generate-and-commit-files workflow script

* Generate test and review files automatically

* workflow tweak

* Generate test and review files automatically

* workflow tweak

* Generate test and review files automatically

* workflow tweak

* Generate test and review files automatically

* workflow tweak

* Generate test and review files automatically

* Generate test and review files automatically

* workflow tweak

* Generate test and review files automatically

* workflow tweak

* workflow step rename

* added tests/.gitignore

* Generate test and review files automatically

* untracked files

* Generate test and review files automatically

* misc

* Generate test and review files automatically

* adjusted generate-and-commit-files.yml for CI

* Generate test and review files automatically

* updated workflow action

* untracked files

* Generate test and review files automatically

* misc

* Generate test and review files automatically

* Update test-03-navigate-to-unchecked-checkbox-interaction.html

* Generate test and review files automatically

* Create test-03-navigate-to-unchecked-checkbox-interaction.html

* Generate test and review files automatically

* misc

* Generate test and review files automatically

* after untrack

* modified gitignore

* untrack files

* testing .gitattributes

* Generate test and review files automatically

* .gitattributes

* Generate test and review files automatically

* misc

* Generate test and review files automatically

* misc

* Generate test and review files automatically

* misc

* Generate test and review files automatically

* adjusted .gitattributes

* Generate test and review files automatically

* misc

* Generate test and review files automatically

* misc

* misc

* adjusted gitignore

* after untrack

* prep to test workflow

* Generate test and review files automatically

* Create index.html

* Generate test and review files automatically

* Delete index.html

* Generate test and review files automatically

* adjusting generated PR link

* Generate test and review files automatically

* adding support for support.json

* Generate test and review files automatically

* build cleanups

* misc

* workflow refactor

* Generate test and review files automatically

* Generate test and review files automatically

* after merging with verbosity branch

* Generate test and review files automatically

* updated .gitattributes and .gitignore; added additional utility script for generating tests and review files locally

* Generate test and review files automatically

* misc

* Generate test and review files automatically

Co-authored-by: howard-e <[email protected]>
  • Loading branch information
howard-e and howard-e authored Jun 2, 2021
1 parent 79962d8 commit 4e99651
Show file tree
Hide file tree
Showing 538 changed files with 2,208 additions and 4,194 deletions.
13 changes: 13 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# build folder
/build/**/*.json -diff -merge
/build/**/*.html linguist-generated=true
/build/*.json -diff -merge
/build/*.html linguist-generated=true
/build/index.html -diff -merge
/build/index.html linguist-generated=true
/build/review/*.html -diff -merge
/build/review/*.html linguist-generated=true
/build/tests/*/*.html -diff -merge
/build/tests/*/*.html linguist-generated=true
/build/tests/*/*.json -diff -merge
/build/tests/*/*.json linguist-generated=true
11 changes: 7 additions & 4 deletions .github/workflows/generate-and-commit-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Generate test files
run: npm run create-all-tests
# - name: Generate test files
# run: npm run create-all-tests

- name: Generate review files
run: npm run review-tests
# - name: Generate review files
# run: npm run review-tests

- name: Generate test and review files
run: npm run build

- uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
head-branch-regex: '.*'
title-template: ''
body-template: '[Preview Tests](https://raw.githack.com/w3c/aria-at/%headbranch%/index.html)'
body-template: '[Preview Tests](https://raw.githack.com/howard-e/aria-at/%headbranch%/build/index.html)'
body-update-action: prefix
body-uppercase-head-match: false
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/node_modules

.#*

.DS_*

# Ignore locally generated files files
/index.html
/review
/tests/*/*.html
/tests/*/*.json

# Preserve all the contents of /tests/resources
!/tests/resources/*
16 changes: 8 additions & 8 deletions index.html → build/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4e99651

Please sign in to comment.