Skip to content

Commit

Permalink
Merge pull request #21 from humanitec/node-20
Browse files Browse the repository at this point in the history
chore: node 16 -> 20
  • Loading branch information
louisbennett authored May 16, 2024
2 parents fe96023 + 67f94bc commit 70b0060
Show file tree
Hide file tree
Showing 7 changed files with 25,799 additions and 5,560 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [20.x, 22.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
- run: npm ci
- run: npm run lint
- run: npm test
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Dynamic Preview Environments using Humanitec

This GitHub action allows you to dynamically create and deleted preview environments using the Humanitec Platform Orchestrator.
This GitHub Action allows you to dynamically create and deleted preview environments using the Humanitec Platform Orchestrator.

## Inputs

Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: humanitec/preview-envs-action@v1
- uses: humanitec/preview-envs-action@v2
with:
humanitec-token: ${{ secrets.HUMANITEC_TOKEN }}
humanitec-org: my-org
Expand All @@ -69,7 +69,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: humanitec/preview-envs-action@v1
- uses: humanitec/preview-envs-action@v2
with:
humanitec-token: ${{ secrets.HUMANITEC_TOKEN }}
humanitec-org: my-org
Expand All @@ -79,10 +79,10 @@ jobs:
```
### Notify Humanitec

Add the following snipped after your CI step notifying Humanitec about the newly pushed image (commonly the build-push-to-humanitec step):
Add the following snipped after your CI step to notify Humanitec about the newly pushed image (commonly the build-push-to-humanitec step):

```yaml
- uses: humanitec/preview-envs-action@v1
- uses: humanitec/preview-envs-action@v2
with:
humanitec-org: my-org
humanitec-app: my-app
Expand All @@ -98,10 +98,10 @@ All actions above return the output parameter `environment-url`. If you just wan
```yaml
- name: Get Preview Environment
id: preview-env
uses: humanitec/preview-envs-action@mst-wal-7302-test-on-pr
uses: humanitec/preview-envs-action@v2
with:
humanitec-org: humanitec-labs
humanitec-app: humanitec-frontend
humanitec-org: my-org
humanitec-app: my-app
action: get-environment-url
github-token: ${{ secrets.GITHUB_TOKEN }}
environment-url-template: "https://{{envId}}-app.humanitec.io"
Expand All @@ -112,7 +112,7 @@ All actions above return the output parameter `environment-url`. If you just wan

## Development

Running the tests requires an Humanitec account. Once this is created, the following environment variables need to be configure:
Running the tests requires an Humanitec account. Once this is created, the following environment variables need to be configured:

* `HUMANITEC_ORG`
* `HUMANITEC_TOKEN`
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ outputs:
humanitec-env:
description: 'The id of the created environment'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'check-square'
Expand Down
Loading

0 comments on commit 70b0060

Please sign in to comment.