Skip to content

Commit

Permalink
Update NPM dependencies 2024-11 (#188)
Browse files Browse the repository at this point in the history
* Update NPM dependencies 2024-11

* fix e2e script

* Use new codecov action

* Codecov fixes
  • Loading branch information
GRiMe2D authored Nov 26, 2024
1 parent 69faaa5 commit cd6a550
Show file tree
Hide file tree
Showing 7 changed files with 353 additions and 248 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
- run: npm ci
- run: npm test
- run: npx gulp
- run: bash <(curl -s https://codecov.io/bash)
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
lint:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -72,7 +74,7 @@ jobs:
assert.ok(semver.valid(version))
EOF
npx babel-node check_version.js
- uses: del-systems/check-if-version-bumped@v1
- uses: del-systems/check-if-version-bumped@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
demo:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ _Forget answering questions when the particular screen was changed and why_
This project aimed to collect screenshots from UI tests and store them to S3 compatible storage. Screenshots are referenced by their name and every new one will be compared with old ones. It will be displayed in HTML report if there any differences. This is not screenshot or snapshot testing, this is history of the each screen's snapshot.

## Maintenance
<img src="https://codecov.io/gh/del-systems/swatcher/branch/master/graphs/commits.svg?token=V7AJCMJI7V">
<img src="https://codecov.io/gh/del-systems/swatcher/graphs/tree.svg?token=V7AJCMJI7V">
2 changes: 1 addition & 1 deletion dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import looksSame from 'looks-same';
import imageSize from 'image-size';
import nodeFetch from 'node-fetch';

var swatcherVersion = '1.6.2';
var swatcherVersion = '2.0.0';

class GithubActionsEnvironment {
constructor (githubPayload) {
Expand Down
4 changes: 2 additions & 2 deletions e2e/collect_and_generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export GITHUB_REPOSITORY='e2e/repo'
export GITHUB_API_URL='http://127.0.0.1:12345'

# start our docker containers
docker-compose -f "${PROJECT_DIR}/e2e/docker-compose.yml" up -d
docker compose -f "${PROJECT_DIR}/e2e/docker-compose.yml" up -d

# wait until github comment api starts up
# disable command echoing
Expand Down Expand Up @@ -73,5 +73,5 @@ cp "${PROJECT_DIR}/e2e/fixtures/ipad-4.png" "$TEMP_DIR/ipad_settings.png"

curl -H "Authorization: token $SWATCHER_GITHUB_API_TOKEN" "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/issues/1/comments"

docker-compose -f "${PROJECT_DIR}/e2e/docker-compose.yml" down
docker compose -f "${PROJECT_DIR}/e2e/docker-compose.yml" down

Loading

0 comments on commit cd6a550

Please sign in to comment.