diff --git a/.github/workflows/delete_develop.yml b/.github/workflows/delete_develop.yml deleted file mode 100644 index ef9d4d3e..00000000 --- a/.github/workflows/delete_develop.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: delete_develop -on: - delete: - -env: - VERSION: '' -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Get version from release branch - run: echo "VERSION=${GITHUB_BRANCH}" >> $GITHUB_ENV - env: - GITHUB_BRANCH: ${{ github.ref_name }} - - name: Display version install - run: echo "Deleting version ${VERSION} in dev.toolkit" - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: 'AKIAXNR47MADGK2A4HEW' - aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADGK2A4HEW }} - aws-region: us-east-2 - - name: Delete S3 bucket - run: aws s3 rm s3://dev.toolkit.illinois.edu/content/$VERSION --recursive - - name: Invalidate Cloudfront cache - run: aws cloudfront create-invalidation --distribution-id E2AF2WM1XJU9VI --paths "/$VERSION*" \ No newline at end of file diff --git a/.github/workflows/delete_develop_workflow.yml b/.github/workflows/delete_develop_workflow.yml deleted file mode 100644 index bf521591..00000000 --- a/.github/workflows/delete_develop_workflow.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: delete_develop_workflow -on: - workflow_dispatch: - -env: - VERSION: '' -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Set up latest branch - run: echo "VERSION=latest" >> $GITHUB_ENV - - name: Display version install - run: echo "Deleting everything and reloading latest in dev.toolkit" - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: 'AKIAXNR47MADGK2A4HEW' - aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADGK2A4HEW }} - aws-region: us-east-2 - - name: Delete S3 bucket - run: aws s3 rm s3://dev.toolkit.illinois.edu/content/ --recursive - - name: Deploy toolbox to S3 bucket - run: aws s3 sync ./dist/ s3://dev.toolkit.illinois.edu/content/$VERSION --delete --acl bucket-owner-full-control - - run: npm run-script create-test-html -- --pathprefix=$VERSION/examples/ - - name: Deploy examples to S3 bucket - run: aws s3 sync ./var/full-site-deploy/ s3://dev.toolkit.illinois.edu/content/$VERSION/examples --delete --acl bucket-owner-full-control - - name: Deploy static images in examples to S3 bucket - run: aws s3 sync ./tests/_reference/ s3://dev.toolkit.illinois.edu/content/$VERSION/examples/static-images --acl bucket-owner-full-control - - name: Invalidate Cloudfront cache - run: aws cloudfront create-invalidation --distribution-id E2AF2WM1XJU9VI --paths "/*" \ No newline at end of file diff --git a/.github/workflows/deploy3_develop.yml b/.github/workflows/deploy3_develop.yml deleted file mode 100644 index 3924f01c..00000000 --- a/.github/workflows/deploy3_develop.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: deploy3_develop -on: - push: - branches-ignore: - - 'main' - - 'release/**' - - 'actions' -env: - VERSION: '' -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Get version from release branch - run: echo "VERSION=${GITHUB_BRANCH}" >> $GITHUB_ENV - env: - GITHUB_BRANCH: ${{ github.ref_name }} - - name: If from develop branch, change to latest - if: ${{ github.ref == 'refs/heads/develop' }} - run: echo "VERSION=latest" >> $GITHUB_ENV - - name: Display version install - run: echo "Installing version ${VERSION} in dev.toolkit" - - run: npm install - - run: npm rebuild - - run: npm run-script build - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: 'AKIAXNR47MADGK2A4HEW' - aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADGK2A4HEW }} - aws-region: us-east-2 - - name: Deploy toolbox to S3 bucket - run: aws s3 sync ./dist/ s3://dev.toolkit.illinois.edu/content/$VERSION --delete --acl bucket-owner-full-control - - name: Invalidate Cloudfront cache - run: aws cloudfront create-invalidation --distribution-id E2AF2WM1XJU9VI --paths "/$VERSION*" diff --git a/.github/workflows/deploy3_develop_workflow.yml b/.github/workflows/deploy3_develop_workflow.yml deleted file mode 100644 index a50f847e..00000000 --- a/.github/workflows/deploy3_develop_workflow.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: deploy3_develop_workflow -on: - workflow_dispatch: - inputs: - version: - description: 'Version number' - required: true - default: '' - type: string -env: - MAJORVERSION: '' -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Get Version - id: get_version - uses: battila7/get-version-action@v2 - - - name: Get version from input - run: echo "VERSION=${GITHUB_BRANCH}" >> $GITHUB_ENV - env: - GITHUB_BRANCH: ${{ github.event.inputs.version }} - - name: Display version install - run: echo "Installing dev version ${VERSION}" - - - run: npm install - - run: npm rebuild - - run: npm run-script build - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: 'AKIAXNR47MADGK2A4HEW' - aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADGK2A4HEW }} - aws-region: us-east-2 - - name: Delete S3 bucket in dev area - run: aws s3 rm s3://dev.toolkit.illinois.edu/content/$VERSION --recursive - - name: Deploy toolbox to S3 bucket in dev area - run: aws s3 sync ./dist/ s3://dev.toolkit.illinois.edu/content/$VERSION --delete --acl bucket-owner-full-control - - name: Invalidate Cloudfront cache - run: aws cloudfront create-invalidation --distribution-id E2AF2WM1XJU9VI --paths "/$VERSION*" diff --git a/.github/workflows/deploy3_workflow.yml b/.github/workflows/deploy3_workflow.yml deleted file mode 100644 index 05bc2475..00000000 --- a/.github/workflows/deploy3_workflow.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: deploy3_workflow -on: - workflow_dispatch: - inputs: - version: - description: 'Version number' - required: true - default: '' - type: string -env: - MAJORVERSION: '' -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Get Version - id: get_version - uses: battila7/get-version-action@v2 - - - name: Get version from input - run: echo "VERSION=${GITHUB_BRANCH}" >> $GITHUB_ENV - env: - GITHUB_BRANCH: ${{ github.event.inputs.version }} - - name: Display version install - run: echo "Installing CDN version ${VERSION}" - - - run: npm install - - run: npm rebuild - - run: npm run-script build - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: 'AKIAXNR47MADGK2A4HEW' - aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADGK2A4HEW }} - aws-region: us-east-2 - - name: Delete S3 bucket in CDN area - run: aws s3 rm s3://cdn.toolkit.illinois.edu/content/$VERSION --recursive - - name: Deploy toolbox to S3 bucket in CDN area - run: aws s3 sync ./dist/ s3://cdn.toolkit.illinois.edu/content/$VERSION --delete --acl bucket-owner-full-control diff --git a/.github/workflows/deploy_develop_workflow.yml b/.github/workflows/deploy_develop_workflow.yml deleted file mode 100644 index 25e3b867..00000000 --- a/.github/workflows/deploy_develop_workflow.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: deploy_develop_workflow -on: - workflow_dispatch: - inputs: - version: - description: 'Version number' - required: true - default: '' - type: string -env: - MAJORVERSION: '' -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Get Version - id: get_version - uses: battila7/get-version-action@v2 - - - name: Get version from input - run: echo "VERSION=${GITHUB_BRANCH}" >> $GITHUB_ENV - env: - GITHUB_BRANCH: ${{ github.event.inputs.version }} - - name: Display version install - run: echo "Installing dev version ${VERSION}" - - - run: npm install - - run: npm rebuild - - run: npm run-script build - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: 'AKIAXNR47MADGK2A4HEW' - aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADGK2A4HEW }} - aws-region: us-east-2 - - name: Deploy toolbox to S3 bucket - run: aws s3 sync ./dist/ s3://dev.toolkit.illinois.edu/content/$VERSION --delete --acl bucket-owner-full-control - - run: npm run-script create-test-html -- --pathprefix=$VERSION/examples/ - - name: Deploy examples to S3 bucket - run: aws s3 sync ./var/full-site-deploy/ s3://dev.toolkit.illinois.edu/content/$VERSION/examples --delete --acl bucket-owner-full-control - - name: Deploy static images in examples to S3 bucket - run: aws s3 sync ./tests/_reference/ s3://dev.toolkit.illinois.edu/content/$VERSION/examples/static-images --acl bucket-owner-full-control - - name: Invalidate Cloudfront cache - run: aws cloudfront create-invalidation --distribution-id E2AF2WM1XJU9VI --paths "/$VERSION*" diff --git a/.github/workflows/deploy_major.yml b/.github/workflows/deploy_major.yml deleted file mode 100644 index d0110d8b..00000000 --- a/.github/workflows/deploy_major.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: deploy_major -on: - push: - branches: - - 'main' -env: - MAJORVERSION: '2' -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Get Version - id: get_version - uses: battila7/get-version-action@v2 - - - name: Check to see what branch we are on - run: echo "${{ github.ref_name }}" - - name: Check for correct naming convention - if: ${{ github.ref_name != 'main' }} - run: exit 1 - - name: Display version major install - run: echo "Installing major version ${MAJORVERSION}" - - - run: npm install - - run: npm rebuild - - run: npm run-script build - - name: Configure AWS Credentials (DEPRECIATED) - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.CDN_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.CDN_SECRET_ACCESS_KEY }} - aws-region: us-east-2 - - - name: Deploy toolbox to CDN BRAND S3 bucket for major version (DEPRECIATED) - run: aws s3 sync ./dist/ s3://cdn.brand.illinois.edu/toolkit/$MAJORVERSION --delete --acl bucket-owner-full-control - - name: Build examples for major version (DEPRECIATED) - run: npm run-script create-test-html -- --pathprefix=toolkit/$MAJORVERSION/examples/ - - name: Deploy examples to CDN BRAND S3 bucket for major version (DEPRECIATED) - run: aws s3 sync ./var/full-site-deploy/ s3://cdn.brand.illinois.edu/toolkit/$MAJORVERSION/examples --delete --acl bucket-owner-full-control - - name: Deploy static images in examples to CDN BRAND S3 bucket for major version (DEPRECIATED) - run: aws s3 sync ./tests/_reference/ s3://cdn.brand.illinois.edu/toolkit/$MAJORVERSION/examples/static-images --acl bucket-owner-full-control - - name: Invalidate Cloudfront cache for major version (DEPRECIATED) - run: aws cloudfront create-invalidation --distribution-id E2VPGHCUOM84HO --paths "/toolkit/$MAJORVERSION*" - - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: 'AKIAXNR47MADGK2A4HEW' - aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADGK2A4HEW }} - aws-region: us-east-2 - - - name: Deploy toolbox to S3 bucket for major version - run: aws s3 sync ./dist/ s3://cdn.toolkit.illinois.edu/content/$MAJORVERSION --delete --acl bucket-owner-full-control - - name: Build examples for major version - run: npm run-script create-test-html -- --pathprefix=$MAJORVERSION/examples/ - - name: Deploy examples to S3 bucket for major version - run: aws s3 sync ./var/full-site-deploy/ s3://cdn.toolkit.illinois.edu/content/$MAJORVERSION/examples --delete --acl bucket-owner-full-control - - name: Deploy static images in examples to S3 bucket for major version - run: aws s3 sync ./tests/_reference/ s3://cdn.toolkit.illinois.edu/content/$MAJORVERSION/examples/static-images --acl bucket-owner-full-control - - name: Invalidate Cloudfront cache for major version - run: aws cloudfront create-invalidation --distribution-id EXFMUB66J7AM8 --paths "/$MAJORVERSION*" diff --git a/.github/workflows/deploy_minor.yml b/.github/workflows/deploy_minor.yml deleted file mode 100644 index 111b8a4a..00000000 --- a/.github/workflows/deploy_minor.yml +++ /dev/null @@ -1,103 +0,0 @@ -name: deploy_minor -on: - push: - tags: [ '**' ] -env: - MINORVERSION: '' - FULLVERSION: '' -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Get Version - id: get_version - uses: battila7/get-version-action@v2 - - - name: Check for correct naming convention - if: ${{ !steps.get_version.outputs.is-semver }} - run: exit 1 - - name: Get minor version from tag - run: echo "MINORVERSION=${GITHUB_BRANCH}.${GITHUB_BRANCH_MINOR}" >> $GITHUB_ENV - env: - GITHUB_BRANCH: ${{ steps.get_version.outputs.major }} - GITHUB_BRANCH_MINOR: ${{ steps.get_version.outputs.minor }} - - name: Get patch (full) version from tag - run: echo "FULLVERSION=${GITHUB_BRANCH}" >> $GITHUB_ENV - env: - GITHUB_BRANCH: ${{ steps.get_version.outputs.version-without-v }} - - name: Display version minor install - run: echo "Installing minor version ${MINORVERSION}" - - name: Display version patch (full) install - run: echo "Installing patch (full) version ${FULLVERSION}" - - - run: npm install - - run: npm rebuild - - run: npm run-script build - - name: Configure AWS Credentials (DEPRECIATED) - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.CDN_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.CDN_SECRET_ACCESS_KEY }} - aws-region: us-east-2 - - - name: Deploy toolbox to CDN BRAND S3 bucket for minor version if not prelease (DEPRECIATED) - if: ${{ steps.get_version.outputs.prerelease == '' }} - run: aws s3 sync ./dist/ s3://cdn.brand.illinois.edu/toolkit/$MINORVERSION --delete --acl bucket-owner-full-control - - name: Build examples for minor version if not prelease (DEPRECIATED) - if: ${{ steps.get_version.outputs.prerelease == '' }} - run: npm run-script create-test-html -- --pathprefix=toolkit/$MINORVERSION/examples/ - - name: Deploy examples to CDN BRAND S3 bucket for minor version if not prelease (DEPRECIATED) - if: ${{ steps.get_version.outputs.prerelease == '' }} - run: aws s3 sync ./var/full-site-deploy/ s3://cdn.brand.illinois.edu/toolkit/$MINORVERSION/examples --delete --acl bucket-owner-full-control - - name: Deploy static images in examples to CDN BRAND S3 bucket for minor version if not prelease (DEPRECIATED) - if: ${{ steps.get_version.outputs.prerelease == '' }} - run: aws s3 sync ./tests/_reference/ s3://cdn.brand.illinois.edu/toolkit/$MINORVERSION/examples/static-images --acl bucket-owner-full-control - - name: Invalidate Cloudfront cache for minor version if not prelease (DEPRECIATED) - if: ${{ steps.get_version.outputs.prerelease == '' }} - run: aws cloudfront create-invalidation --distribution-id E2VPGHCUOM84HO --paths "/toolkit/$MINORVERSION*" - - - name: Deploy toolbox to CDN BRAND S3 bucket for full version (DEPRECIATED) - run: aws s3 sync ./dist/ s3://cdn.brand.illinois.edu/toolkit/$FULLVERSION --delete --acl bucket-owner-full-control - - name: Build examples for full version (DEPRECIATED) - run: npm run-script create-test-html -- --pathprefix=toolkit/$FULLVERSION/examples/ - - name: Deploy examples to CDN BRAND S3 bucket for full version (DEPRECIATED) - run: aws s3 sync ./var/full-site-deploy/ s3://cdn.brand.illinois.edu/toolkit/$FULLVERSION/examples --delete --acl bucket-owner-full-control - - name: Deploy static images in examples to S3 bucket for full version (DEPRECIATED) - run: aws s3 sync ./tests/_reference/ s3://cdn.brand.illinois.edu/toolkit/$FULLVERSION/examples/static-images --acl bucket-owner-full-control - - name: Invalidate Cloudfront cache for full version (DEPRECIATED) - run: aws cloudfront create-invalidation --distribution-id E2VPGHCUOM84HO --paths "/toolkit/$FULLVERSION*" - - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: 'AKIAXNR47MADGK2A4HEW' - aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADGK2A4HEW }} - aws-region: us-east-2 - - - name: Deploy toolbox to S3 bucket for minor version if not prelease - if: ${{ steps.get_version.outputs.prerelease == '' }} - run: aws s3 sync ./dist/ s3://cdn.toolkit.illinois.edu/content/$MINORVERSION --delete --acl bucket-owner-full-control - - name: Build examples for minor version if not prelease - if: ${{ steps.get_version.outputs.prerelease == '' }} - run: npm run-script create-test-html -- --pathprefix=$MINORVERSION/examples/ - - name: Deploy examples to S3 bucket for minor version if not prelease - if: ${{ steps.get_version.outputs.prerelease == '' }} - run: aws s3 sync ./var/full-site-deploy/ s3://cdn.toolkit.illinois.edu/content/$MINORVERSION/examples --delete --acl bucket-owner-full-control - - name: Deploy static images in examples to S3 bucket for minor version if not prelease - if: ${{ steps.get_version.outputs.prerelease == '' }} - run: aws s3 sync ./tests/_reference/ s3://cdn.toolkit.illinois.edu/content/$MINORVERSION/examples/static-images --acl bucket-owner-full-control - - name: Invalidate Cloudfront cache for minor version if not prelease - if: ${{ steps.get_version.outputs.prerelease == '' }} - run: aws cloudfront create-invalidation --distribution-id EXFMUB66J7AM8 --paths "/$MINORVERSION*" - - - name: Deploy toolbox to S3 bucket for full version - run: aws s3 sync ./dist/ s3://cdn.toolkit.illinois.edu/content/$FULLVERSION --delete --acl bucket-owner-full-control - - name: Build examples for full version - run: npm run-script create-test-html -- --pathprefix=$FULLVERSION/examples/ - - name: Deploy examples to S3 bucket for full version - run: aws s3 sync ./var/full-site-deploy/ s3://cdn.toolkit.illinois.edu/content/$FULLVERSION/examples --delete --acl bucket-owner-full-control - - name: Deploy static images in examples to S3 bucket for full version - run: aws s3 sync ./tests/_reference/ s3://cdn.toolkit.illinois.edu/content/$FULLVERSION/examples/static-images --acl bucket-owner-full-control - - name: Invalidate Cloudfront cache for full version - run: aws cloudfront create-invalidation --distribution-id EXFMUB66J7AM8 --paths "/$FULLVERSION*" diff --git a/.github/workflows/deploy_production_workflow.yml b/.github/workflows/deploy_production_workflow.yml deleted file mode 100644 index ec0f1d1f..00000000 --- a/.github/workflows/deploy_production_workflow.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: deploy_production_workflow -on: - workflow_dispatch: - inputs: - version: - description: 'Version number' - required: true - default: '2' - type: string -env: - MAJORVERSION: '' -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Get Version - id: get_version - uses: battila7/get-version-action@v2 - - - name: Get version from input - run: echo "VERSION=${GITHUB_BRANCH}" >> $GITHUB_ENV - env: - GITHUB_BRANCH: ${{ github.event.inputs.version }} - - name: Display version install - run: echo "Installing version ${VERSION}" - - - run: npm install - - run: npm rebuild - - run: npm run-script build - - name: Configure AWS Credentials (DEPRECIATED) - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.CDN_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.CDN_SECRET_ACCESS_KEY }} - aws-region: us-east-2 - - - name: Deploy toolbox to CDN BRAND S3 bucket for version (DEPRECIATED) - run: aws s3 sync ./dist/ s3://cdn.brand.illinois.edu/toolkit/$VERSION --delete --acl bucket-owner-full-control - - name: Build examples for version (DEPRECIATED) - run: npm run-script create-test-html -- --pathprefix=toolkit/$VERSION/examples/ - - name: Deploy examples to CDN BRAND S3 bucket for version (DEPRECIATED) - run: aws s3 sync ./var/full-site-deploy/ s3://cdn.brand.illinois.edu/toolkit/$VERSION/examples --delete --acl bucket-owner-full-control - - name: Deploy static images in examples to CDN BRAND S3 bucket for version (DEPRECIATED) - run: aws s3 sync ./tests/_reference/ s3://cdn.brand.illinois.edu/toolkit/$VERSION/examples/static-images --acl bucket-owner-full-control - - name: Invalidate Cloudfront cache for version (DEPRECIATED) - run: aws cloudfront create-invalidation --distribution-id E2VPGHCUOM84HO --paths "/toolkit/$VERSION*" - - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: 'AKIAXNR47MADGK2A4HEW' - aws-secret-access-key: ${{ secrets.AWS_SECRET_FOR_AKIAXNR47MADGK2A4HEW }} - aws-region: us-east-2 - - - name: Deploy toolbox to S3 bucket for version - run: aws s3 sync ./dist/ s3://cdn.toolkit.illinois.edu/content/$VERSION --delete --acl bucket-owner-full-control - - name: Build examples for version - run: npm run-script create-test-html -- --pathprefix=$VERSION/examples/ - - name: Deploy examples to S3 bucket for version - run: aws s3 sync ./var/full-site-deploy/ s3://cdn.toolkit.illinois.edu/content/$VERSION/examples --delete --acl bucket-owner-full-control - - name: Deploy static images in examples to S3 bucket for version - run: aws s3 sync ./tests/_reference/ s3://cdn.toolkit.illinois.edu/content/$VERSION/examples/static-images --acl bucket-owner-full-control - - name: Invalidate Cloudfront cache for version - run: aws cloudfront create-invalidation --distribution-id EXFMUB66J7AM8 --paths "/$VERSION*" diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml new file mode 100644 index 00000000..960a56b2 --- /dev/null +++ b/.github/workflows/playwright.yml @@ -0,0 +1,21 @@ +name: Playwright Tests +on: + push: + branches: [ release-3.0 ] +jobs: + playwright: + name: 'Playwright Tests' + runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/playwright:v1.41.1-jammy + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install dependencies + run: npm ci + - name: Run your tests + run: npx playwright test + env: + HOME: /root \ No newline at end of file diff --git a/src/il-carousel/README.md b/src/il-carousel/README.md index 4b96a39f..44ff8ad7 100644 --- a/src/il-carousel/README.md +++ b/src/il-carousel/README.md @@ -10,45 +10,17 @@ This component follows the [ARIA APG carousel pattern](https://www.w3.org/WAI/AR The following markup defines a carousel with 5 slides: -```html - - - - - - - - - - - - - - - - - -``` + + Example markup for a carousel with five slides + For more information about slide content, see the [`il-slide` component](../il-slide/README.md). This markup would produce: -``` - +-------------------------------------+ - | | - | | - /| | | |\ -/ | | | | \ -\ | | | | / - \| | | |/ - | | - | | - +-------------------------------------+ - - [#] [:] [:] [:] [:] - -``` + + Screenshot of a carousel with five slides + The basic controls consist of: @@ -59,32 +31,18 @@ The basic controls consist of: Adding the `autoplay` attribute causes the carousel to automatically advance to the next slide at a designated interval. -```html - - - -``` + + Example markup for a carousel with autoplay enabled + Autoplay introduces 2 changes to the carousel controls: * a play/pause toggle which allows autoplay to be stopped and resumed * the button representing the current slide expands to indicate the time until the next slide - -``` - +-------------------------------------+ - | | - | | - /| | | |\ -/ | | | | \ -\ | | | | / - \| | | |/ - | | - | | - +-------------------------------------+ - - [||] [::::::::::::::::] [:] [:] [:] [:] -``` + + Screenshot of a carousel with autoplay enabled + The expanded slide button gradually fills from left to right until the carousel advances to the next slide. diff --git a/src/il-carousel/comps/5-slides.txt b/src/il-carousel/comps/5-slides.txt new file mode 100644 index 00000000..4620813a --- /dev/null +++ b/src/il-carousel/comps/5-slides.txt @@ -0,0 +1,12 @@ + +-------------------------------------+ + | | + | | + /| | | |\ +/ | | | | \ +\ | | | | / + \| | | |/ + | | + | | + +-------------------------------------+ + + [#] [:] [:] [:] [:] diff --git a/src/il-carousel/comps/autoplay.txt b/src/il-carousel/comps/autoplay.txt new file mode 100644 index 00000000..4483445f --- /dev/null +++ b/src/il-carousel/comps/autoplay.txt @@ -0,0 +1,12 @@ + +-------------------------------------+ + | | + | | + /| | | |\ +/ | | | | \ +\ | | | | / + \| | | |/ + | | + | | + +-------------------------------------+ + + [||] [::::::::::::::::] [:] [:] [:] [:] diff --git a/src/il-carousel/samples/5-slides.html b/src/il-carousel/samples/5-slides.html new file mode 100644 index 00000000..0d17c078 --- /dev/null +++ b/src/il-carousel/samples/5-slides.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/src/il-carousel/samples/autoplay.html b/src/il-carousel/samples/autoplay.html new file mode 100644 index 00000000..e7218ccc --- /dev/null +++ b/src/il-carousel/samples/autoplay.html @@ -0,0 +1,3 @@ + + + diff --git a/src/il-hero/README.md b/src/il-hero/README.md index 8bca85a7..83ca9f98 100644 --- a/src/il-hero/README.md +++ b/src/il-hero/README.md @@ -12,7 +12,7 @@ A basic hero contain the page title: ``` -[screenshot] + ## Changing the color diff --git a/src/il-hero/hero.spec.js-snapshots/desktop-screenshot-1-chromium-darwin.png b/src/il-hero/hero.spec.js-snapshots/desktop-screenshot-1-chromium-darwin.png deleted file mode 100644 index 67f14401..00000000 Binary files a/src/il-hero/hero.spec.js-snapshots/desktop-screenshot-1-chromium-darwin.png and /dev/null differ diff --git a/src/il-hero/hero.spec.js-snapshots/desktop-screenshot-1-firefox-darwin.png b/src/il-hero/hero.spec.js-snapshots/desktop-screenshot-1-firefox-darwin.png deleted file mode 100644 index 70a48840..00000000 Binary files a/src/il-hero/hero.spec.js-snapshots/desktop-screenshot-1-firefox-darwin.png and /dev/null differ diff --git a/src/il-hero/hero.spec.js-snapshots/desktop-screenshot-1-webkit-darwin.png b/src/il-hero/hero.spec.js-snapshots/desktop-screenshot-1-webkit-darwin.png deleted file mode 100644 index bbbc15b3..00000000 Binary files a/src/il-hero/hero.spec.js-snapshots/desktop-screenshot-1-webkit-darwin.png and /dev/null differ diff --git a/src/il-hero/hero.spec.js-snapshots/mobile-screenshot-1-chromium-darwin.png b/src/il-hero/hero.spec.js-snapshots/mobile-screenshot-1-chromium-darwin.png deleted file mode 100644 index fe0ced7b..00000000 Binary files a/src/il-hero/hero.spec.js-snapshots/mobile-screenshot-1-chromium-darwin.png and /dev/null differ diff --git a/src/il-hero/hero.spec.js-snapshots/mobile-screenshot-1-firefox-darwin.png b/src/il-hero/hero.spec.js-snapshots/mobile-screenshot-1-firefox-darwin.png deleted file mode 100644 index b85312c8..00000000 Binary files a/src/il-hero/hero.spec.js-snapshots/mobile-screenshot-1-firefox-darwin.png and /dev/null differ diff --git a/src/il-hero/hero.spec.js-snapshots/mobile-screenshot-1-webkit-darwin.png b/src/il-hero/hero.spec.js-snapshots/mobile-screenshot-1-webkit-darwin.png deleted file mode 100644 index 7e9a9c20..00000000 Binary files a/src/il-hero/hero.spec.js-snapshots/mobile-screenshot-1-webkit-darwin.png and /dev/null differ diff --git a/src/il-hero/tests/hero-with-image.html b/src/il-hero/tests/hero-with-image.html deleted file mode 100644 index ce85f7aa..00000000 --- a/src/il-hero/tests/hero-with-image.html +++ /dev/null @@ -1,20 +0,0 @@ - -Hero with background image - - - - - -

Innovating solutions every year

- -
diff --git a/src/il-hero/tests/hero.html b/src/il-hero/tests/hero.html deleted file mode 100644 index 509e10a7..00000000 --- a/src/il-hero/tests/hero.html +++ /dev/null @@ -1,33 +0,0 @@ - -Hero component test - - - - -

Innovating solutions every year

- -
- - \ No newline at end of file diff --git a/src/il-hero/tests/image.jpg b/src/il-hero/tests/image.jpg deleted file mode 100644 index ee548eae..00000000 Binary files a/src/il-hero/tests/image.jpg and /dev/null differ