Skip to content

Commit

Permalink
readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanmcshane committed Mar 12, 2024
2 parents 34cb025 + fd4caba commit aa2712d
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 24 deletions.
6 changes: 5 additions & 1 deletion .github/actions/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ inputs:
token:
description: 'Porter token for authentication.'
required: true
app_name:
description: 'Porter app name.'
required: true

runs:
using: composite
Expand All @@ -30,4 +33,5 @@ runs:
PORTER_HOST: ${{ inputs.host }}
PORTER_PROJECT: ${{ inputs.project }}
PORTER_CLUSTER: ${{ inputs.cluster }}
PORTER_TOKEN: ${{ inputs.token }}
PORTER_TOKEN: ${{ inputs.token }}
PORTER_APP_NAME: ${{ inputs.app_name }}
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# app-integration-tests

Permissions needed for Github API:

- Workflows (Read & Write)
- Contents (Read & Write)
- Actions (Read & Write)
Central location for test apps and test `porter.yaml` files.

# Tests Summary:

Expand Down
2 changes: 1 addition & 1 deletion js-test-app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ RUN npm install
ENV NODE_ENV=development
ARG SPONSOR

COPY docker ./
COPY . ./

CMD node index.js
11 changes: 7 additions & 4 deletions test-yamls/js-test-app-buildpack.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
version: v2
name: js-test-app-buildpack
services:
- name: web
run: node index.js
type: web
port: 3000
cpuCores: 0.05
ramMegabytes: 50
predeploy:
run: ls
cpuCores: 0.05
ramMegabytes: 50
build:
context: ./js-test-app
method: pack
builder: heroku/buildpacks:20
buildpacks:
- heroku/nodejs
predeploy:
run: ls
- heroku/nodejs
11 changes: 7 additions & 4 deletions test-yamls/js-test-app-dockerfile.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
version: v2
name: js-test-app-dockerfile
services:
- name: web
run: node index.js
type: web
port: 3000
cpuCores: 0.05
ramMegabytes: 50
predeploy:
run: ls
cpuCores: 0.05
ramMegabytes: 50
build:
context: ./js-test-app
method: docker
dockerfile: Dockerfile
predeploy:
run: ls
dockerfile: ./js-test-app/Dockerfile
11 changes: 7 additions & 4 deletions test-yamls/next-test-app-dockerfile.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
version: v2
name: next-test-app-dockerfile
services:
- name: web
port: 3000
- name: web
port: 3000
cpuCores: 0.05
ramMegabytes: 50
predeploy:
run: ls
cpuCores: 0.05
ramMegabytes: 50
build:
context: ./next-test-app
method: docker
dockerfile: Dockerfile
dockerfile: ./next-test-app/Dockerfile
11 changes: 6 additions & 5 deletions test-yamls/nginx.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
version: v2
name: nginx-latest
services:
- name: web
run: ""
type: web
port: 80
- name: web
run: ""
type: web
port: 80
cpuCores: 0.05
ramMegabytes: 50
image:
repository: nginx
tag: latest

0 comments on commit aa2712d

Please sign in to comment.