Merge pull request #4449 from ietf-tools/jennifer/main-to-tzaware-conflicts

chore: merge main into feat/tzaware
This commit is contained in:
Jennifer Richards 2022-09-14 12:37:16 -03:00 committed by GitHub
commit aa4ba65bc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
303 changed files with 27833 additions and 2359 deletions

View file

@ -31,6 +31,9 @@ indent_size = 2
[client/**]
indent_size = 2
[dev/**.js]
indent_size = 2
[{package.json,.eslintrc.js,.yarnrc.yml,vite.config.js,cypress.config.js}]
indent_size = 2

View file

@ -20,9 +20,14 @@ on:
description: 'Skip Tests'
required: true
type: boolean
updatecoverage:
ignoreLowerCoverage:
description: 'Ignore Lower Coverage'
default: false
required: true
type: boolean
updateCoverage:
description: 'Update Baseline Coverage'
default: true
default: false
required: true
type: boolean
dryrun:
@ -130,6 +135,7 @@ jobs:
/usr/local/bin/wait-for db:3306 -- echo "DB ready"
- name: Run all tests
shell: bash
run: |
echo "Running checks..."
./ietf/manage.py check
@ -142,7 +148,12 @@ jobs:
exit 1
fi
echo "Running tests..."
./ietf/manage.py test --settings=settings_sqlitetest
if [[ "x${{ github.event.inputs.ignoreLowerCoverage }}" == "xtrue" ]]; then
echo "Lower coverage failures will be ignored."
./ietf/manage.py test --settings=settings_sqlitetest --ignore-lower-coverage
else
./ietf/manage.py test --settings=settings_sqlitetest
fi
coverage xml
- name: Upload Coverage Results to Codecov
@ -162,8 +173,42 @@ jobs:
name: coverage
path: coverage.json
tests-cypress:
name: Run Tests (Cypress)
tests-cypress-modern:
name: Run Tests (Cypress - Modern)
if: ${{ github.event.inputs.skiptests == 'false' }}
needs: [prepare]
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Run all tests
run: |
echo "Installing dependencies..."
yarn
echo "Start Vite Preview..."
yarn preview &>/dev/null &
echo "Running tests..."
yarn cypress
- name: Upload Video Recordings
uses: actions/upload-artifact@v3.0.0
if: ${{ always() }}
continue-on-error: true
with:
name: videos-modern
path: cypress/videos/
- name: Upload Screenshots
uses: actions/upload-artifact@v3.0.0
if: ${{ always() }}
continue-on-error: true
with:
name: screenshots-modern
path: cypress/screenshots/
tests-cypress-legacy:
name: Run Tests (Cypress - Legacy)
if: ${{ github.event.inputs.skiptests == 'false' }}
needs: [prepare]
runs-on: ubuntu-latest
@ -204,22 +249,31 @@ jobs:
- name: Run all tests
run: |
echo "Running tests..."
yarn cypress
yarn cypress:legacy
- name: Upload Video Recordings
uses: actions/upload-artifact@v3.0.0
if: ${{ always() }}
continue-on-error: true
with:
name: videos
name: videos-legacy
path: cypress/videos/
- name: Upload Screenshots
uses: actions/upload-artifact@v3.0.0
if: ${{ always() }}
continue-on-error: true
with:
name: screenshots-modern
path: cypress/screenshots/
# -----------------------------------------------------------------
# RELEASE
# -----------------------------------------------------------------
release:
name: Make Release
if: ${{ always() }}
needs: [tests-python, tests-cypress, prepare]
needs: [tests-python, tests-cypress-modern, tests-cypress-legacy, prepare]
runs-on: ubuntu-latest
env:
SHOULD_DEPLOY: ${{needs.prepare.outputs.should_deploy}}
@ -317,7 +371,7 @@ jobs:
- name: Update Baseline Coverage
uses: ncipollo/release-action@v1
if: ${{ github.event.inputs.updatecoverage == 'true' && github.event.inputs.dryrun == 'false' }}
if: ${{ github.event.inputs.updateCoverage == 'true' && github.event.inputs.dryrun == 'false' }}
with:
allowUpdates: true
tag: baseline

1
.gitignore vendored
View file

@ -11,6 +11,7 @@ datatracker.sublime-workspace
/.settings
/.tmp
/.vite
/client/dist
/data
/dist
/docker/docker-compose.extend-custom.yml

2690
.pnp.cjs generated

File diff suppressed because it is too large Load diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show more