Commit graph

57 commits

Author SHA1 Message Date
Felipe Knorr Kuhn
a5e4b09e64
Set fail fast to false on the frontend jobs 2022-07-08 05:13:26 -07:00
Felipe Knorr Kuhn
1501dd23ab
Continue running CI jobs if something fails 2022-07-08 04:49:51 -07:00
Felipe Knorr Kuhn
15ab134fa4
Run the CI action on 16 and 18 2022-07-08 04:44:19 -07:00
wiz
d57193c269
Fix npm install commands in Dockerfiles and ops scripts 2022-07-07 18:53:17 +02:00
Felipe Knorr Kuhn
43e0fe655e
Update CI to trigger on PRs and exclude from ops activities 2022-07-06 16:29:38 -07:00
Erik Arvstedt
6288bcde51
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
80476a2b61 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
78ee671051 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
f4389e11ba
Change the CI GHA to a matrix job 2022-07-05 05:37:17 -07:00
Felipe Knorr Kuhn
8e8609371f
Fix GHA syntax 2022-07-05 04:48:44 -07:00
Felipe Knorr Kuhn
174976ce82
Fix GHA syntax 2022-07-05 04:46:13 -07:00
Felipe Knorr Kuhn
57adce693a
Checkout the repo to dev and prod dirs to run different test targets 2022-07-05 04:42:04 -07:00
Felipe Knorr Kuhn
97686e1c87
Add working directory to the lint stage on GHA 2022-07-05 04:34:43 -07:00
Felipe Knorr Kuhn
0a747b5609
Enable running eslint on GHA 2022-07-05 04:30:56 -07:00
softsimon
543c1cee62
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
00bb09faaa
Skip tests if branch name starts with ops 2022-07-04 02:55:21 -07:00
Felipe Knorr Kuhn
7f5ddaf930
Ignore pushes to the ops branches 2022-07-03 03:29:09 -07:00
Felipe Knorr Kuhn
19ae01defb
Various typing and build fixes to enable CI 2022-06-27 21:28:21 -07:00
Felipe Knorr Kuhn
8fa0539b5a
Update test triggers 2022-06-24 21:56:08 -07:00
Felipe Knorr Kuhn
7262485f3b
Skip tests when the ops labeled is used 2022-06-24 21:51:13 -07:00
Felipe Knorr Kuhn
b71922fabf
Update Cypress Github Action to v4 2022-06-03 20:59:31 -07:00
Felipe Knorr Kuhn
ce0564a89c
Update Cypress Github Action to v4 2022-06-03 20:59:03 -07:00
Felipe Knorr Kuhn
2a287b8d66
Update Cypress triggers back to push and pull request 2022-06-03 20:52:59 -07:00
Felipe Knorr Kuhn
69713ae156
Update to Cypress v10 2022-06-03 20:46:33 -07:00
Felipe Knorr Kuhn
212cced969
Update the recommended node version to v16.5.0 (LTS) 2022-05-09 21:59:09 -07:00
naveensrinivasan
8f8c22b829 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
0c7a907451
Update Cypress event trigers to master and PRs 2022-02-07 21:15:40 -08:00
Felipe Knorr Kuhn
37ba43d0eb
Adjust merge messages and add tags for pushes and PRs 2022-02-07 20:50:10 -08:00
Felipe Knorr Kuhn
90784ea1ee
Update CI Cypress config to hit staging 2022-02-06 15:13:31 -08:00
Felipe Knorr Kuhn
7bb95ff177
Update Cypress GHA spec list 2022-01-20 21:43:13 -08:00
Felipe Knorr Kuhn
b6215dd54f
Enable dependency caching on e2e GHA 2021-12-07 21:27:22 -08:00
Felipe Knorr Kuhn
69d5cfe98e
Use node 16.10.0 on the e2e GHA 2021-12-07 21:22:21 -08:00
Felipe Knorr Kuhn
cbeeef3b2c
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
278c2b9aae Fix typo on liquid setup 2021-08-17 16:38:51 -07:00
Felipe Knorr Kuhn
944246fcf5 Allow test jobs to run regardless of previous failures 2021-08-17 16:26:19 -07:00
Felipe Knorr Kuhn
03d87f4993 Add the Cypress env vars to the new test configs 2021-08-17 16:14:19 -07:00
Felipe Knorr Kuhn
cf8cab5f77 Temporarily enable cypress debug logs on GHA 2021-08-17 16:08:47 -07:00
Felipe Knorr Kuhn
49d1376647 Update cypress test config 2021-08-17 15:55:00 -07:00
Felipe Knorr Kuhn
a6d34ba4f1 remove firefox from test matrix 2021-08-03 21:20:05 -07:00
wiz
5548d08a9e
Remove debug env var for cypress testsuite runs 2021-08-03 12:20:55 +09:00
wiz
91a37d8fe8
Add [push, pull_request] to cypress GHA workflow 2021-07-29 23:58:25 +09:00
Felipe Knorr Kuhn
59cd80b6d1
remove windows from test matrix (#666) 2021-07-27 02:47:32 +03:00
Felipe Knorr Kuhn
60d8697b09
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
41aa1248be
Pass GITHUB_TOKEN to Cypress workflows, revert back to on "push" 2021-07-27 01:48:53 +09:00
wiz
cedd94c654
Set GitHub Action for Cypress to pull_request instead of push 2021-07-26 15:47:13 +09:00
Felipe Knorr Kuhn
9e46cde9b7
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 cb3ff7d906.

* 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
8574ee6edd push both tag and latest images at the same time 2021-06-26 10:29:08 -07:00
Felipe Knorr Kuhn
f937ea5745 fix missing backslash 2021-06-26 00:38:18 -07:00
Felipe Knorr Kuhn
ca91afe45b update GHA workflow to expose the short sha to docker 2021-06-25 23:46:56 -07:00
Bastien Guillaumat
20ff62779d
Re-implement Docker workflow using GitHub Actions (#326)
* Recreate a docker dir with all docker files inside and add init.sh
* Add docker/README.md with example docker-compose.xml
* Add mysql vars for mempool-config.json
* Port can be set from env var in docker-compose.xml
* Update docker-compose.xml example to use latest tag
* Remove armv7 architecture from build workflow
* Remove master git-hash file
* Remove useless ':' in sed
2021-02-10 22:51:01 +09:00