Commit graph

681 commits

Author SHA1 Message Date
Ralf Vogler
32cd0d8990
Create LICENSE - AGPL-3.0
https://choosealicense.com/licenses/agpl-3.0/
2023-11-06 19:12:16 +01:00
Ralf Vogler
b99a154267 Revert "workaround for recordVideo broken in Playwright 1.36"
This reverts commit 13b2917dd0.

Fine to do after upgrade to 1.39 in 75f7d77445.
which included https://github.com/microsoft/playwright/issues/27086
2023-11-02 16:26:45 +01:00
Ralf Vogler
75f7d77445 upgrade playwright-firefox 1.38.1 -> 1.39.0 2023-11-02 16:23:46 +01:00
Ralf Vogler
bf870919a6 upgrade to lowdb 6.1.1 and use JSONPreset
See example in https://github.com/typicode/lowdb/releases/tag/v6.1.0
2023-11-02 16:18:48 +01:00
Ralf Vogler
280ab70975
README.md: recommend to run without docker until #183 is fixed 2023-11-02 16:01:08 +01:00
4n4n4s
1dbe2f1457 Allow forks to create builds and fix failing build 2023-10-27 11:37:32 +00:00
Ralf Vogler
4137bb5569 DEBUG=1 as alternative to PWDEBUG=1 (also shows Playwright debugger) 2023-10-26 15:01:04 +02:00
Ralf Vogler
a374d48345 eg: fix login (email/password split), closes #236 2023-10-25 19:48:58 +02:00
Ralf Vogler
d73a523fe7 eg: fix sign in, user displayname, #236 2023-10-25 19:44:52 +02:00
Ralf Vogler
04787909c7 eg: waitFor order confirmation to be attached instead of visible, #233 2023-10-13 00:03:11 +02:00
Ralf Vogler
ad2301c3fd pg: eg: fix detecting successful claim 2023-10-10 22:42:38 +02:00
Ralf Vogler
a8ab989a7f pg: external: check for 'Link account' besides 'Link game account' 2023-10-10 22:12:59 +02:00
Ralf Vogler
9fc68b881f pg: legacygames: don't wait for response, just text 2023-10-10 22:01:23 +02:00
4n4n4s
0040d9d96c Sonarqube support with ESLint 2023-09-26 19:12:09 +00:00
Ralf Vogler
d318a57be1 ncu -u: playwright-firefox ^1.38.0 → ^1.38.1 2023-09-25 09:35:30 +02:00
Ralf Vogler
9ebd15f204 fix log text if $VNC_PASSWORD is set, fixes #223 2023-09-23 11:02:08 +02:00
Ralf Vogler
41f1f95509 PW: replace deprecated type() with pressSequentially() for OTPs 2023-09-18 14:02:15 +02:00
Ralf Vogler
840d35c2d2 ncu -u: playwright-firefox ^1.37.1 → ^1.38.0 2023-09-18 13:54:40 +02:00
Ralf Vogler
13b2917dd0 workaround for recordVideo broken in Playwright 1.36
Recording videos with relative path as in docs was broken for Firefox.
Issue: https://github.com/microsoft/playwright/issues/27086
Can be reverted after PR is available in release: https://github.com/microsoft/playwright/pull/27099
2023-09-18 13:03:04 +02:00
Ralf Vogler
b748460b73 disable Playwright's handleSIGINT and close context ourselves to save recordings also on SIGINT 2023-09-18 12:58:20 +02:00
Ralf Vogler
1fbabbc0f2 log path of recorded video 2023-09-18 12:49:23 +02:00
dependabot[bot]
2a4da3f49c
build(deps): bump docker/build-push-action from 4 to 5 (#212)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4 to 5.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18 09:51:53 +02:00
dependabot[bot]
0ba693eeb6
build(deps): bump docker/login-action from 2 to 3 (#214)
Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18 09:51:23 +02:00
dependabot[bot]
6cdef56c09
build(deps): bump docker/setup-buildx-action from 2 to 3 (#213)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18 09:50:04 +02:00
dependabot[bot]
30db49d9b9
build(deps): bump docker/setup-qemu-action from 2 to 3 (#215)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18 09:49:00 +02:00
dependabot[bot]
44d712e333
build(deps): bump actions/checkout from 3 to 4 (#207)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 09:41:42 +02:00
Ralf Vogler
d51f7310d9 gog: fix #200, uncheck 'Marketing communications through Trusted Partners' 2023-09-07 13:56:37 +02:00
Ralf Vogler
e30216c9b8 eg: default resolution 1280x1280 -> 1920x1080, #183 2023-09-07 13:30:49 +02:00
Ralf Vogler
c79f4cc40f docker: migrate to new nodesource repo; node 19 -> 20
old node setup script had a warning to migrate with 60s pause during docker build

https://github.com/nodesource/distributions/wiki/How-to-migrate-to-the-new-repository
2023-09-07 13:27:18 +02:00
Ralf Vogler
97882c76c3 eg: debug: window.screen 2023-09-07 13:25:14 +02:00
Ralf Vogler
b449ee4d7f pg: redeem: legacygames success/error 2023-09-05 16:12:20 +02:00
Ralf Vogler
d4ebdd091a pg: log current game in claim loop, not data loop 2023-09-05 15:59:17 +02:00
Ralf Vogler
d8e2093a0d pg: INTERACTIVE=1 to confirm each claim or skip it 2023-09-05 15:56:24 +02:00
Ralf Vogler
38975e811b eg: error: Incorrect repsonse for captcha! 2023-08-31 23:08:29 +02:00
Ralf Vogler
59004cd4bb README: no docker updates: git pull; npm install 2023-08-31 23:04:42 +02:00
Ralf Vogler
5ae4ce5666 eg: option TIME=1 to log duration of steps, #183 2023-08-31 18:59:10 +02:00
Ralf Vogler
93d082e700 eg: comment userAgent firefox (docker) 2023-08-31 17:05:12 +02:00
Ralf Vogler
621032e459 eg: notify about captcha before claim, closes #191 2023-08-30 19:21:24 +02:00
KevinMatt
6bb1dca934
epic-games: captcha on login: await notify (#195)
Adding async handle in captcha notify
2023-08-28 09:16:30 +02:00
Ralf Vogler
9261be690c '/.dockerenv' did not exist in container... 2023-08-28 01:25:09 +02:00
Ralf Vogler
6560afa2b5 version.js to check if running the latest version 2023-08-28 01:17:57 +02:00
Ralf Vogler
d4d7ee3281 fix indent 2023-08-28 00:47:52 +02:00
Ralf Vogler
c211472d0c docker: try GitHub Actions cache
https://docs.docker.com/build/ci/github-actions/cache/#github-cache
2023-08-27 23:59:30 +02:00
Ralf Vogler
f528fbfd30 docker: more human-readable format for date $NOW 2023-08-27 23:41:19 +02:00
Ralf Vogler
d7949fb9dd can't use secrets in if of workflow step? 2023-08-27 23:39:52 +02:00
Ralf Vogler
8a010dbcc7 docker: pass in build-args, add $NOW 2023-08-27 23:32:56 +02:00
Ralf Vogler
2eb17a1419 docker: show version via $COMMIT_SHA (and $BRANCH if not "main") 2023-08-27 18:33:27 +02:00
Ralf Vogler
24a9f23211
Merge pull request #193 from 4n4n4s/main-1
Update Readme for restart with sleep in docker compose and Apprise with Telegram
2023-08-27 15:44:38 +02:00
Ralf Vogler
682c651224 docker: use OCI labels
https://github.com/opencontainers/image-spec/blob/main/annotations.md
https://docs.docker.com/engine/reference/builder/#label

Before:
```console
$ docker image inspect --format='{{json .Config.Labels}}' ghcr.io/vogler/free-games-claimer | jq
{
  "org.opencontainers.image.ref.name": "ubuntu",
  "org.opencontainers.image.version": "22.04"
}
```

After:
```console
$ docker image inspect --format='{{json .Config.Labels}}' ghcr.io/vogler/free-games-claimer | jq
{
  "org.opencontainers.image.base.name": "ubuntu:jammy",
  "org.opencontainers.image.description": "Automatically claims free games on the Epic Games Store, Amazon Prime Gaming and GOG",
  "org.opencontainers.image.name": "free-games-claimer",
  "org.opencontainers.image.ref.name": "",
  "org.opencontainers.image.revision": "",
  "org.opencontainers.image.source": "https://github.com/vogler/free-games-claimer",
  "org.opencontainers.image.title": "free-games-claimer",
  "org.opencontainers.image.url": "https://github.com/vogler/free-games-claimer",
  "org.opencontainers.image.version": "latest"
}
```
2023-08-26 10:47:18 +02:00
Ralf Vogler
c09d20766c dependabot daily -> weekly, may want to customize commit-message 2023-08-25 21:50:17 +02:00