Skip to content

Commit

Permalink
Merge branch 'master' of github.com:namoscato/action-tinify into depe…
Browse files Browse the repository at this point in the history
…ndabot/npm_and_yarn/actions/github-5.1.1

* 'master' of github.com:namoscato/action-tinify:
  Bump prettier from 2.2.1 to 2.7.1 (#345)
  Add README badges (#369)
  • Loading branch information
namoscato committed Nov 19, 2022
2 parents 6959afb + fca190f commit 97e7c91
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![ci](https://github.com/namoscato/action-tinify/actions/workflows/ci.yml/badge.svg)](https://github.com/namoscato/action-tinify/actions/workflows/ci.yml) [![docker](https://img.shields.io/docker/v/namoscato/github-action-tinify?label=docker&logoColor=%23fff&sort=semver)](https://hub.docker.com/r/namoscato/github-action-tinify)

# Tinify Image Action

[GitHub Action](https://github.com/features/actions) to compress and resize images with the [Tinify API](https://tinypng.com/developers).
Expand Down
17 changes: 10 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"jest-circus": "^26.6.3",
"js-yaml": "^4.1.0",
"nock": "^13.2.9",
"prettier": "^2.2.1",
"prettier": "^2.7.1",
"ts-jest": "^24.3.0",
"typescript": "^4.2.4"
}
Expand Down
8 changes: 4 additions & 4 deletions src/git/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('Git', () => {
test('should fetch files', async () => {
const files = await new Git({
token: 'TOKEN',
context: ({
context: {
eventName: 'push',
payload: {
commits: [{id: 'C1'}, {id: 'C2'}]
Expand All @@ -47,7 +47,7 @@ describe('Git', () => {
owner: 'OWNER',
repo: 'REPO'
}
} as unknown) as Context
} as unknown as Context
}).getFiles()

expect(files).toEqual([
Expand Down Expand Up @@ -86,7 +86,7 @@ describe('Git', () => {
test('should fetch files', async () => {
const files = await new Git({
token: 'TOKEN',
context: ({
context: {
eventName: 'pull_request',
payload: {
number: 1
Expand All @@ -95,7 +95,7 @@ describe('Git', () => {
owner: 'OWNER',
repo: 'REPO'
}
} as unknown) as Context
} as unknown as Context
}).getFiles()

expect(files).toEqual([
Expand Down

0 comments on commit 97e7c91

Please sign in to comment.