60 Commits

Author SHA1 Message Date
Felipe Knorr Kuhn
717c06f476 Remove wrong path setting 2022-07-21 23:10:41 -07:00
Felipe Knorr Kuhn
2adb0fc014 Fix wrong browser var 2022-07-21 23:04:10 -07:00
Felipe Knorr Kuhn
91bdf967c3 Simplify Cypress GHA 2022-07-21 23:02:26 -07:00
Felipe Knorr Kuhn
0151a80060 Set fail fast to false on the frontend jobs 2022-07-08 05:13:26 -07:00
Felipe Knorr Kuhn
74b0d01b50 Continue running CI jobs if something fails 2022-07-08 04:49:51 -07:00
Felipe Knorr Kuhn
4638196977 Run the CI action on 16 and 18 2022-07-08 04:44:19 -07:00
wiz
15e2c10e45 Fix npm install commands in Dockerfiles and ops scripts 2022-07-07 18:53:17 +02:00
Felipe Knorr Kuhn
2eca57cc47 Update CI to trigger on PRs and exclude from ops activities 2022-07-06 16:29:38 -07:00
Erik Arvstedt
0c52174a40 CI: Add --no-optional flag to prod flavor
This ensures that the packages build successfully even when optional
deps are unavailable.
`--no-optional` currently has no effect on the backend, because
it has no optional packages.
2022-07-06 23:43:09 +02:00
Erik Arvstedt
3bc64e9551 CI: Use npm ci instead of npm install
`npm ci` is recommended instead of `npm install` for automated builds.
Its main advantage is the `package-lock.json` consistency check: The
command fails if the lock file doesn't match `package.json`.
2022-07-06 23:38:06 +02:00
Erik Arvstedt
a4ad056436 CI/frontend: Add missing install flag for prod flavor
Also restrict linting, which requires dev packages, to the `dev`
flavor.
This makes the frontend build setup indentical to the backend.
2022-07-06 23:38:05 +02:00
Felipe Knorr Kuhn
149eb70b89 Change the CI GHA to a matrix job 2022-07-05 05:37:17 -07:00
Felipe Knorr Kuhn
047de19424 Fix GHA syntax 2022-07-05 04:48:44 -07:00
Felipe Knorr Kuhn
7ea5ae274e Fix GHA syntax 2022-07-05 04:46:13 -07:00
Felipe Knorr Kuhn
f053323001 Checkout the repo to dev and prod dirs to run different test targets 2022-07-05 04:42:04 -07:00
Felipe Knorr Kuhn
36b6ef290a Add working directory to the lint stage on GHA 2022-07-05 04:34:43 -07:00
Felipe Knorr Kuhn
05179e64f8 Enable running eslint on GHA 2022-07-05 04:30:56 -07:00
softsimon
d25e12581b Merge pull request #1946 from knorrium/knorrium/gha_build
Various typing and build fixes to enable CI
2022-07-04 17:57:31 +02:00
Felipe Knorr Kuhn
00609f6f7f Skip tests if branch name starts with ops 2022-07-04 02:55:21 -07:00
Felipe Knorr Kuhn
9880c492a4 Ignore pushes to the ops branches 2022-07-03 03:29:09 -07:00
Felipe Knorr Kuhn
76dbda0a3e Various typing and build fixes to enable CI 2022-06-27 21:28:21 -07:00
Felipe Knorr Kuhn
77e0e98517 Update test triggers 2022-06-24 21:56:08 -07:00
Felipe Knorr Kuhn
3f75b4c235 Skip tests when the ops labeled is used 2022-06-24 21:51:13 -07:00
Felipe Knorr Kuhn
00047b5987 Update Cypress Github Action to v4 2022-06-03 20:59:31 -07:00
Felipe Knorr Kuhn
dfdaa1a8a6 Update Cypress Github Action to v4 2022-06-03 20:59:03 -07:00
Felipe Knorr Kuhn
c925a5c970 Update Cypress triggers back to push and pull request 2022-06-03 20:52:59 -07:00
Felipe Knorr Kuhn
98bcc8da0e Update to Cypress v10 2022-06-03 20:46:33 -07:00
Felipe Knorr Kuhn
adcaa712a8 Update the recommended node version to v16.5.0 (LTS) 2022-05-09 21:59:09 -07:00
naveensrinivasan
5a43bda38b Pin actions by SHA and set permissions for workflow
- Pinned dependencies https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies
- Restricting permissions for github actions https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
2022-03-11 22:48:15 +00:00
Felipe Knorr Kuhn
315a72908a Update Cypress event trigers to master and PRs 2022-02-07 21:15:40 -08:00
Felipe Knorr Kuhn
34a67b07bf Adjust merge messages and add tags for pushes and PRs 2022-02-07 20:50:10 -08:00
Felipe Knorr Kuhn
9cf0a6e424 Update CI Cypress config to hit staging 2022-02-06 15:13:31 -08:00
Felipe Knorr Kuhn
8e37b2a780 Update Cypress GHA spec list 2022-01-20 21:43:13 -08:00
Felipe Knorr Kuhn
1030dab49d Enable dependency caching on e2e GHA 2021-12-07 21:27:22 -08:00
Felipe Knorr Kuhn
419677cbd9 Use node 16.10.0 on the e2e GHA 2021-12-07 21:22:21 -08:00
Felipe Knorr Kuhn
5792ad1d4e Remove BASE_MODULE from the GHA env vars as we read from the config now 2021-10-27 20:52:50 -07:00
Felipe Knorr Kuhn
e2d47ef06d Fix typo on liquid setup 2021-08-17 16:38:51 -07:00
Felipe Knorr Kuhn
822d5e8a72 Allow test jobs to run regardless of previous failures 2021-08-17 16:26:19 -07:00
Felipe Knorr Kuhn
25eaaae554 Add the Cypress env vars to the new test configs 2021-08-17 16:14:19 -07:00
Felipe Knorr Kuhn
a1056670ca Temporarily enable cypress debug logs on GHA 2021-08-17 16:08:47 -07:00
Felipe Knorr Kuhn
aed23f274f Update cypress test config 2021-08-17 15:55:00 -07:00
Felipe Knorr Kuhn
211010508e remove firefox from test matrix 2021-08-03 21:20:05 -07:00
wiz
4f5a5dee69 Remove debug env var for cypress testsuite runs 2021-08-03 12:20:55 +09:00
wiz
fe32c99bee Add [push, pull_request] to cypress GHA workflow 2021-07-29 23:58:25 +09:00
Felipe Knorr Kuhn
fef9b98d49 remove windows from test matrix (#666) 2021-07-27 02:47:32 +03:00
Felipe Knorr Kuhn
bbe1912510 Cypress browser matrix (#665)
* use cypress matrix

* fix workflow indentation

* fix workflow job name

* add dummy containers for parallelization
2021-07-27 03:23:35 +09:00
wiz
5d4459d700 Pass GITHUB_TOKEN to Cypress workflows, revert back to on "push" 2021-07-27 01:48:53 +09:00
wiz
da89b63d37 Set GitHub Action for Cypress to pull_request instead of push 2021-07-26 15:47:13 +09:00
Felipe Knorr Kuhn
98d5c7826c Updates to the e2e suite (#659)
* initial version of the update config script

* fix duplicated content

* update cypress ci settings

* add workflow to run e2e tests when pushing

* record cypress results to the dashboard

* pull the cypress record key and project id from the secrets

* add start-server-and-test to replace concurrently

* replace concurrently with start-server-and-test

* remove concurrently

* add new cypress target to record

* update cypress to 7.7.0

* add tests for signet

* add tests for testnet

* run tests on chrome and firefox

* update test matrix: add edge and run firefox on container

* fix copypasta

* update docker image for firefox

* fix task name again

* fix edge tests task name

* improve bisq tests

* update workflow config

* enable cypress debug logs

* add a manual trigger for the e2e tests

* add config:defaults target

* use more of the GHA options

* fix config command

* add cypress-fail-on-console-error

* upgrade cypress to v8.0.0

* add helper to wait for the loader skeleton to be gone

* use skeleton waiter on the tests

* remove manual test trigger

* fix tv test when only one mempool block is available

* add waiter for pagination

* add extra steps to debug firefox launch issue

* remove whoami step

* Revert "upgrade cypress to v8.0.0"

This reverts commit cb3ff7d906c2a2219d7e2b2c16a92c311e3f6817.

* remove userinfo debug step

* enable test retries in run mode

* update proxy config to reduce ECONNRESET errors

* add mock-socket dev dependency

* add helpers to mock websockets and detect page idleness

* stabilize mainnet tests

* fix tv mode test on Liquid

* add basic tests for the mainnet status page

* cleanup mainnet tests

* update bisq tests

* update signet tests

* update testnet tests

* add initial support for parameterized websocket mocks

* move testing dependencies to optionalDependencies

* comment out mempool size check until the live updates are fixed

* comment out tx regex test

* update fixture for the new difficulty adjustment component

* fix the assertions on the status page
2021-07-25 21:03:47 +03:00
Felipe Knorr Kuhn
e153657036 push both tag and latest images at the same time 2021-06-26 10:29:08 -07:00