Skip to content

Commit

Permalink
Merge pull request #29 from cgrothaus/use-node20-for-github-action
Browse files Browse the repository at this point in the history
Use node20 for GitHub action
  • Loading branch information
stefanvocke authored Aug 30, 2024
2 parents 9550ca0 + 3ee228c commit 406d584
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 39 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-and-deployment-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ jobs:
stages-json: ${{ steps.build-and-push-image.outputs.stages-json }}
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Build image and push it to SetOps image registry"
id: build-and-push-image
uses: setopsco/github-actions/build-and-push-image@v3
uses: setopsco/github-actions/build-and-push-image@v4
with:
setops-api-domain: ${{ inputs.setops-api-domain }}
setops-organization: ${{ inputs.setops-organization }}
Expand Down Expand Up @@ -113,10 +113,10 @@ jobs:
needs: build
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Deploy apps on SetOps"
id: deploy
uses: setopsco/github-actions/deployment@v3
uses: setopsco/github-actions/deployment@v4
with:
setops-api-domain: ${{ inputs.setops-api-domain }}
setops-organization: ${{ inputs.setops-organization }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-build-and-deployment-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup SetOps
uses: ./setup
Expand All @@ -46,7 +46,7 @@ jobs:
stages-json: ${{ steps.build-and-push-image.outputs.stages-json }}
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Build image and push it to SetOps image registry"
id: build-and-push-image
uses: ./build-and-push-image
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
needs: build
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Deploy apps on SetOps"
id: deploy
uses: ./deployment
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/test-setup-action-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'test-setup-action-build'
name: "test-setup-action-build"

on:
push:
Expand All @@ -14,22 +14,22 @@ jobs:
working-directory: ./setup

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: "20.x"

- name: Install
run: npm clean-install
- name: Install
run: npm clean-install

- name: Verify
run: |
npm run build
# Fail if "npm run build" generated new changes in dist
git update-index --refresh dist/* && git diff-index --quiet HEAD dist
- name: Verify
run: |
npm run build
# Fail if "npm run build" generated new changes in dist
git update-index --refresh dist/* && git diff-index --quiet HEAD dist
- name: Test
run: npm test
- name: Test
run: npm test
6 changes: 3 additions & 3 deletions .github/workflows/test-setup-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
setops_versions: ["0.10.3", latest, next]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup SetOps - ${{ matrix['setops_versions'] }}
uses: ./setup
Expand All @@ -40,7 +40,7 @@ jobs:
setops_versions: [~0.9, 0.9.x, <0.10.0]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup SetOps - ${{ matrix['setops_versions'] }}
uses: ./setup
Expand All @@ -58,7 +58,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup SetOps
uses: ./setup
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ The default configuration installs the latest version of SetOps CLI and a wrappe
```yaml
steps:
- uses: setopsco/github-actions/setup@v3
- uses: setopsco/github-actions/setup@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
```
Expand All @@ -93,7 +93,7 @@ A specific version of SetOps CLI can be installed:

```yaml
steps:
- uses: setopsco/github-actions/setup@v3
- uses: setopsco/github-actions/setup@v4
with:
setops_version: 1.0.0
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -103,7 +103,7 @@ Credentials for SetOps can be configured:
```yaml
steps:
- uses: setopsco/github-actions/setup@v3
- uses: setopsco/github-actions/setup@v4
with:
setops_organization: <yourorganization>
setops_username: [email protected]
Expand All @@ -130,10 +130,10 @@ jobs:
image-tag: ${{ steps.build_and_push_image.outputs.image-tag }}
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Build image and push it to SetOps image registry"
id: build_and_push_image
uses: setopsco/github-actions/build-and-push-image@v3
uses: setopsco/github-actions/build-and-push-image@v4
with:
setops-organization: <yourorganization>
setops-username: ${{ secrets.SETOPS_USER }}
Expand Down Expand Up @@ -167,10 +167,10 @@ deploy:
needs: build
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Deploy project on SetOps"
id: deploy
uses: setopsco/github-actions/deployment@v3
uses: setopsco/github-actions/deployment@v4
with:
setops-organization: <yourorganization>
setops-username: ${{ secrets.SETOPS_USER }}
Expand Down
8 changes: 4 additions & 4 deletions build-and-push-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@ runs:
echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT
shell: bash
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ steps.get_date.outputs.date }}-${{ inputs.build-cache-key-prefix }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-${{ steps.get_date.outputs.date }}-${{ inputs.build-cache-key-prefix }}-
- name: Install SetOps CLI
uses: setopsco/github-actions/setup@v3
uses: setopsco/github-actions/setup@v4
with:
setops_api_url: https://${{ inputs.setops-api-domain }}
setops_organization: ${{ inputs.setops-organization }}
Expand All @@ -102,7 +102,7 @@ runs:
github_token: ${{ inputs.github-token }}
- name: Build and push app
id: build_app
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: ${{ inputs.build-context }}
push: true
Expand Down
2 changes: 1 addition & 1 deletion deployment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ runs:
using: composite
steps:
- name: Install Setops
uses: setopsco/github-actions/setup@v3
uses: setopsco/github-actions/setup@v4
with:
setops_api_url: https://${{ inputs.setops-api-domain }}
setops_organization: ${{ inputs.setops-organization }}
Expand Down
2 changes: 1 addition & 1 deletion setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ inputs:
description: GitHub token to reduce the risk of rate limits when downloading the requested SetOps CLI
required: false
runs:
using: node16
using: node20
main: dist/index.js
branding:
icon: terminal
Expand Down

0 comments on commit 406d584

Please sign in to comment.