-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
// TODO
- Loading branch information
Bruno Oliveira
committed
Feb 8, 2024
1 parent
24ca467
commit b72b881
Showing
44 changed files
with
4,131 additions
and
255 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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
packages/*/docs | ||
node_modules | ||
dist | ||
**/__tests__/*.node.test.ts | ||
**/__tests__/*.node.test.ts | ||
playwright | ||
coverage |
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
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,83 @@ | ||
# This workflow's goal is forcing an update of the reference snapshots used | ||
# by Playwright tests. It runs whenever you post a new pull request comment | ||
# that strictly matches the "/update-snapshots". | ||
# From a high-level perspective, it works like this: | ||
# 1. Because of a GitHub Action limitation, this workflow is triggered on every | ||
# comment posted on a issue or pull request. We manually interrupt it unless | ||
# the comment content strictly matches "/update-snapshots" and we're in a | ||
# pull request. | ||
# 2. Use the GitHub API to grab the information about the branch name and SHA of | ||
# the latest commit of the current pull request. | ||
# 3. Update the Playwright reference snapshots based on the UI of this branch. | ||
# 4. Commit the newly generated Playwright reference snapshots into this branch. | ||
name: Update Snapshots | ||
|
||
on: | ||
# It looks like you can't target PRs-only comments: | ||
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_comment-use-issue_comment | ||
# So we must run this workflow every time a new comment is added to issues | ||
# and pull requests | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
updatesnapshots: | ||
name: Update Snapshots | ||
# Run this job only on comments of pull requests that strictly match | ||
# the "/update-snapshots" string | ||
if: ${{ github.event.issue.pull_request && github.event.comment.body == '/update-snapshots'}} | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout and do a deep fetch to load all commit IDs | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
# This is needed for lerna to commit and push the | ||
# new version when making a release | ||
- name: Checkout the source branch in a pull request for lerna | ||
env: | ||
HEAD_REF: ${{ github.head_ref }} | ||
run: git checkout "$HEAD_REF" | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
registry-url: 'https://registry.npmjs.org' | ||
scope: '@farfetch' | ||
cache: 'yarn' | ||
always-auth: true | ||
|
||
- name: Install dependencies | ||
run: yarn install --ignore-engines --frozen-lockfile | ||
|
||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
|
||
- name: Update version and build packages | ||
run: yarn ci:release --dry-run && yarn build && yarn build:copy-package-json | ||
|
||
- name: Build test application | ||
run: yarn test:e2e:build | ||
|
||
- name: Setup host alias | ||
run: | | ||
sudo echo "127.0.0.1 development.blackandwhite-ff.com" | sudo tee -a /etc/hosts | ||
- name: Start server | ||
run: yarn test:e2e:server & | ||
|
||
- name: Sleep to wait for server to start | ||
run: sleep 5 | ||
|
||
- name: Run critical tests | ||
run: yarn test:e2e:run:critical | ||
|
||
- name: Run non critical tests | ||
if: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/next' }} | ||
run: yarn test:e2e:run:non-critical | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "chore: Update Snapshots [skip ci]" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIEnTCCAwWgAwIBAgIRANsUm+o6x+zXg4Y2aq0D1bgwDQYJKoZIhvcNAQELBQAw | ||
ga8xHjAcBgNVBAoTFW1rY2VydCBkZXZlbG9wbWVudCBDQTFCMEAGA1UECww5YnJ1 | ||
bm8uYS5vbGl2ZWlyYUBGRlBUTU1QM1dDNzIwIChCcnVubyBBbGV4YW5kcmUgT2xp | ||
dmVpcmEpMUkwRwYDVQQDDEBta2NlcnQgYnJ1bm8uYS5vbGl2ZWlyYUBGRlBUTU1Q | ||
M1dDNzIwIChCcnVubyBBbGV4YW5kcmUgT2xpdmVpcmEpMB4XDTI0MDEwODA5NTcy | ||
OFoXDTI2MDQwODA4NTcyOFowbTEnMCUGA1UEChMebWtjZXJ0IGRldmVsb3BtZW50 | ||
IGNlcnRpZmljYXRlMUIwQAYDVQQLDDlicnVuby5hLm9saXZlaXJhQEZGUFRNTVAz | ||
V0M3MjAgKEJydW5vIEFsZXhhbmRyZSBPbGl2ZWlyYSkwggEiMA0GCSqGSIb3DQEB | ||
AQUAA4IBDwAwggEKAoIBAQDWR/Yv5TyrHS4IQJzOSu21HpVYzZ+eClF5VOeyAwm+ | ||
MVvKjgApoG9AOMqJAMF9qlWsAOGqRPiXRXE4Q2txXt125f+cwLK+K72QrGzgnNuN | ||
UYOU0nU42VWvrEf/1r7HT+qDgU/G0gS5ehFhSudGlzkWMEGnCeSjVci3QhZ6cqP3 | ||
18ezPYiWGVm/L8QUM878Gh8hNGV05W/djp8FJuMT69AL7MZj5FHIy9+aDWeXl7M8 | ||
M2kwNCwKqXwOeXfA6gsfz6YkMg/d8599GB9+yJNQAC9EbfqW76TezD7AJUWJ8qdw | ||
liXBMVx1qNTvs5F5I592b37e1NWwhbU/Pd4agoGuBnXfAgMBAAGjdTBzMA4GA1Ud | ||
DwEB/wQEAwIFoDATBgNVHSUEDDAKBggrBgEFBQcDATAfBgNVHSMEGDAWgBSQcdAM | ||
4NXwIpdwJIxbn8hUuzyy0jArBgNVHREEJDAigiBkZXZlbG9wbWVudC5ibGFja2Fu | ||
ZHdoaXRlLWZmLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEANxSSLJaSlVeljh2JXiai | ||
qGxTBVLwBfcnkkSI1tF3IIFw0Lbjju6pDpi6RjQL1Q6TxjCS0a2LmZpnd6ofGH/X | ||
eCUo0cz04fygKSnhPJ/qG7qgh+rZuA9Nv7bkw0gFBiqGFAOm9e2P7p1RCU77tFPh | ||
mBNGRheiShtxdu47B9F39WwmOxNqPataM6XfGGhkJCI7qxF8VLngaLfyyi8zVd/u | ||
gAqw/6suXKY86kbcqOFJxQ+Z3IKMwvaetU83tRhYzn8bbO7ZyT0lEJ8OBStXY8sP | ||
Lxqa9c+BPBTd3TvjVyMo4OWGGkKi6kEswAKUnc8ebYDmj2YfQtesyD47q3uZ1fdU | ||
LaZETXaoqnuncKEPwez+jNDcU/qutrsXLxqcpzcZuMG5sKKb+qADkrqjwdA9QBG1 | ||
rWadjJySkkRdiB+hvRxrT65aJ/QnHiesdGv2fXxW2Bk0PhW1MEUx5FBdxAx6q51o | ||
ZrYr3hbldC0IF0EsekX4H2e+Ul26p/1yBnp096rYd1Ia | ||
-----END CERTIFICATE----- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSk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RPpmNOnTslPlRoDH0FFEYm89a9CoF6hDqJGwWcf5RVpc8m46 | ||
tVGxns/IHyMCgYBiDzz18YCNenn7Ec3loKs/ocwi5uo57JX6GauZ3q8DZLvEeCwn | ||
aUahktbk8lobbFiL3mAjP5gNisNAqG36EcCd16IL5EfXJpiuUyfueF1pjsd4PkWP | ||
bWkH4EmlnruQB38PnBF04Rm7ELy0TdJgMJSBnEfesVEB7vALoII8JYsKMQKBgCB9 | ||
DEqLpIvYc5oIGB9W+b1s66pPxMOfl7cL4RNV3rvn9qhb63GGQl1H7982eSBfZemR | ||
BHAjgdqLLi7zBop5PL0WxaMMl/6d2gmMqyDHxP4XEWWnaWmjYovEZ6PVkIsGHoLD | ||
A/D7Y3pXvn8OmnotOVgJWS4zHucre5TCZy01D3MXAoGBAKuf56LxUjgyGK5LnXvN | ||
4aC50epwdHPwR6iCAA87p/NCrzTlN2gu/f4+OurFytkVmmAfgFYGZCkd0mSuu8rh | ||
8KT0A+VkDL/xUyAJ+0zwhddtf3vTdRKtbcMXXUfjlTrCmc+3vj952DLrkD5aCzFD | ||
nbCyQ8YrEUI9nU+JmrQWwsHR | ||
-----END PRIVATE KEY----- |
Oops, something went wrong.