Skip to content

Commit

Permalink
wip: why does Windows return 200?
Browse files Browse the repository at this point in the history
  • Loading branch information
CamiloGarciaLaRotta committed Feb 9, 2023
1 parent 1ef3f8d commit 3bdabfa
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: "CodeQL"

on:
push:
branches: [master, ]
branches: [main, ]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
branches: [main]
schedule:
- cron: '0 22 * * 6'

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Links
- [Project Board](https://github.com/CamiloGarciaLaRotta/watermelon-http-client/projects/1): If you're looking for Good-first-issues, PR reviews, etc.
- [`.github/workflows`](https://github.com/CamiloGarciaLaRotta/watermelon-http-client/tree/master/.github/workflows): if you are looking for examples of how to use the Action
- [`.github/workflows`](https://github.com/CamiloGarciaLaRotta/watermelon-http-client/tree/mains/.github/workflows): if you are looking for examples of how to use the Action

# Setting up your local environment
Just clone the repo and install the dependencies
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A Typescript Action that performs HTTP requests within your workflow. It supports GraphQL!

[![Build](https://github.com/CamiloGarciaLaRotta/watermelon-http-client/workflows/Build/badge.svg?branch=master)](https://github.com/CamiloGarciaLaRotta/watermelon-http-client/actions)
[![Build](https://github.com/CamiloGarciaLaRotta/watermelon-http-client/workflows/Build/badge.svg?branch=main)](https://github.com/CamiloGarciaLaRotta/watermelon-http-client/actions)

## Inputs

Expand Down
3 changes: 2 additions & 1 deletion __tests__/integration.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as core from '@actions/core'
import {Logger} from '../src/log'
import {run} from '../src/main'
import "jest-os-detection";

jest.setTimeout(600000)

Expand Down Expand Up @@ -184,7 +185,7 @@ describe('when action fails with fail_fast', () => {
process.env['INPUT_FAIL_FAST'] = 'true'
})

it('should handle missing input gracefully', async () => {
it.skipWindows('should handle missing input gracefully', async () => {
const outputMock = jest.spyOn(core, 'setOutput')
const failureMock = jest.spyOn(core, 'setFailed')

Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@
"dependencies": {
"@actions/core": "^1.10.0",
"axios": "^1.3.2",
"jest-os-detection": "^1.3.1",
"yarn": "^1.22.19"
},
"jest": {
"setupFilesAfterEnv": ["jest-os-detection"]
},
"devDependencies": {
"@types/jest": "^26.0.14",
"@types/node": "^14.11.1",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4185,6 +4185,11 @@ jest-mock@^29.4.2:
"@types/node" "*"
jest-util "^29.4.2"

jest-os-detection@^1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/jest-os-detection/-/jest-os-detection-1.3.1.tgz#fad89c4de675bc3cfd07f630a132fe5d82563d01"
integrity sha512-1epFqoue/1J8f9SHOegDE4mY9kJBpetcZAeWtB0SG4XjtkI252mOu4TLJMjl1hDb7v6VefKPeWUweu/TsR7ZcQ==

jest-pnp-resolver@^1.2.2:
version "1.2.2"
resolved "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz"
Expand Down

0 comments on commit 3bdabfa

Please sign in to comment.