Skip to content

Commit

Permalink
Merge branch 'master' into release_v1
Browse files Browse the repository at this point in the history
  • Loading branch information
twistedpair committed May 11, 2021
2 parents 23420ab + a01cd89 commit 3b77a69
Show file tree
Hide file tree
Showing 10 changed files with 4,734 additions and 607 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/pr-workflow.yaml
Expand Up @@ -14,18 +14,19 @@ jobs:
- name: Run checks
run: npm run check

- name: Compile Typescript
run: npm run build

- name: Run Tests
run: npm test

- name: Compile Typescript
run: npm run build

- name: Run mabl tests against deployment
id: mabl-test-deployment
uses: ./
env:
MABL_API_KEY: ${{ secrets.MABL_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
application-id: l-j3VqIO6lLLOOEoFTPSxA-a
environment-id: rtb4kWD5LuTr2KxaHvwfaA-e
application-id: D6uz-lhAGBYuTTc6Jj_w0Q-a
environment-id: I9tfo2dWd7WSigXcO91feA-e
browser-types: chrome
11 changes: 6 additions & 5 deletions .github/workflows/push-workflow.yaml
Expand Up @@ -15,18 +15,19 @@ jobs:
- name: Run checks
run: npm run check

- name: Compile Typescript
run: npm run build

- name: Run Tests
run: npm test

- name: Compile Typescript
run: npm run build

- name: Run mabl tests against deployment
id: mabl-test-deployment
uses: ./
env:
MABL_API_KEY: ${{ secrets.MABL_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
application-id: l-j3VqIO6lLLOOEoFTPSxA-a
environment-id: rtb4kWD5LuTr2KxaHvwfaA-e
application-id: D6uz-lhAGBYuTTc6Jj_w0Q-a
environment-id: I9tfo2dWd7WSigXcO91feA-e
browser-types: chrome
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -5,6 +5,8 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

.npmrc

# Runtime data
pids
*.pid
Expand Down
8 changes: 5 additions & 3 deletions README.md
Expand Up @@ -2,8 +2,10 @@

# mabl GitHub Run Tests Deployment Action

This GitHub Action creates a mabl deployment event, triggering any functional
tests associated with that deployment and waiting for their results.
This GitHub Action creates a mabl deployment event, triggering cloud
test runs associated with that deployment and waiting for their results.

For more complex use cases, see the [setup-mabl-cli](https://github.com/marketplace/actions/setup-mabl-cli) Action to access the CLI directly.

### Example workflow:

Expand Down Expand Up @@ -56,7 +58,7 @@ jobs:
- `browser-types` {string} {optional}: comma separated override for browser
types to test e.g. `chrome, firefox, safari, internet_explorer`. If not
provided, mabl will test the browsers configured on the triggered test.
- 'uri' {string} {optional} the base uri to test against. If provided, this will
- `uri` {string} {optional} the base uri to test against. If provided, this will
override the default uri associated with the environment in mabl
- `rebaseline-images` {boolean} (optional) - Set `true` to reset the visual
baseline to the current deployment
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Expand Up @@ -18,7 +18,7 @@ inputs:
required: false
browser-types:
description: ^
'override for the browser types to test. If not provided, mabl will test
'override for the browser types to test (comma separated). If not provided, mabl will test
the browsers configured on the triggered test plans.'
required: false
uri:
Expand Down Expand Up @@ -64,4 +64,4 @@ outputs:

runs:
using: "node12"
main: "lib/index.js"
main: "lib/src/index.js"
7 changes: 7 additions & 0 deletions jest.config.js
@@ -0,0 +1,7 @@
module.exports = {
roots: ['<rootDir>/test'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
testEnvironment: 'node',
};

0 comments on commit 3b77a69

Please sign in to comment.