Skip to content

Commit

Permalink
chore: update versions in add-ci (#246)
Browse files Browse the repository at this point in the history
* chore: update versions in add-ci

* chore: update versions for pr_test.yml too
  • Loading branch information
MichaelGoberling authored Feb 12, 2024
1 parent 3d99053 commit 64c3d46
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
16 changes: 8 additions & 8 deletions generators/add-ci/.github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ jobs:
strategy:
max-parallel: 1
matrix:
node-version: ['16']
node-version: ['20']
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm install
run: npm i
- name: Setup CLI
uses: adobe/aio-cli-setup-action@1.1.0
uses: adobe/aio-cli-setup-action@1.3.0
with:
os: ${{ matrix.os }}
version: 9.x.x
version: 10.x.x
- name: Auth
uses: adobe/aio-apps-action@3.0.0
uses: adobe/aio-apps-action@3.3.0
with:
os: ${{ matrix.os }}
command: oauth_sts
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Build
env:
AIO_RUNTIME_NAMESPACE: ${{ secrets.AIO_RUNTIME_NAMESPACE_PROD }}
uses: adobe/aio-apps-action@3.0.0
uses: adobe/aio-apps-action@3.3.0
with:
os: ${{ matrix.os }}
command: build
Expand All @@ -54,7 +54,7 @@ jobs:
AIO_PROJECT_WORKSPACE_ID: ${{ secrets.AIO_PROJECT_WORKSPACE_ID_PROD }}
AIO_PROJECT_WORKSPACE_NAME: ${{ secrets.AIO_PROJECT_WORKSPACE_NAME_PROD }}
AIO_PROJECT_WORKSPACE_DETAILS_SERVICES: ${{ secrets.AIO_PROJECT_WORKSPACE_DETAILS_SERVICES_PROD }}
uses: adobe/aio-apps-action@3.0.0
uses: adobe/aio-apps-action@3.3.0
with:
os: ${{ matrix.os }}
command: deploy
16 changes: 8 additions & 8 deletions generators/add-ci/.github/workflows/deploy_stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ jobs:
strategy:
max-parallel: 1
matrix:
node-version: ['16']
node-version: ['20']
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm install
run: npm i
- name: Setup CLI
uses: adobe/aio-cli-setup-action@1.1.0
uses: adobe/aio-cli-setup-action@1.3.0
with:
os: ${{ matrix.os }}
version: 9.x.x
version: 10.x.x
- name: Auth
uses: adobe/aio-apps-action@3.0.0
uses: adobe/aio-apps-action@3.3.0
with:
os: ${{ matrix.os }}
command: oauth_sts
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Build
env:
AIO_RUNTIME_NAMESPACE: ${{ secrets.AIO_RUNTIME_NAMESPACE_STAGE }}
uses: adobe/aio-apps-action@3.0.0
uses: adobe/aio-apps-action@3.3.0
with:
os: ${{ matrix.os }}
command: build
Expand All @@ -55,7 +55,7 @@ jobs:
AIO_PROJECT_WORKSPACE_ID: ${{ secrets.AIO_PROJECT_WORKSPACE_ID_STAGE }}
AIO_PROJECT_WORKSPACE_NAME: ${{ secrets.AIO_PROJECT_WORKSPACE_NAME_STAGE }}
AIO_PROJECT_WORKSPACE_DETAILS_SERVICES: ${{ secrets.AIO_PROJECT_WORKSPACE_DETAILS_SERVICES_STAGE }}
uses: adobe/aio-apps-action@3.0.0
uses: adobe/aio-apps-action@3.3.0
with:
os: ${{ matrix.os }}
command: deploy
Expand Down
16 changes: 8 additions & 8 deletions generators/add-ci/.github/workflows/pr_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: ['16']
node-version: ['20']
os: [macOS-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm install
run: npm i
- name: Setup CLI
uses: adobe/aio-cli-setup-action@1.1.0
uses: adobe/aio-cli-setup-action@1.3.0
with:
os: ${{ matrix.os }}
version: 9.x.x
version: 10.x.x
- name: Auth
uses: adobe/aio-apps-action@3.0.0
uses: adobe/aio-apps-action@3.3.0
with:
os: ${{ matrix.os }}
command: oauth_sts
Expand All @@ -37,12 +37,12 @@ jobs:
- name: Build
env:
AIO_RUNTIME_NAMESPACE: ${{ secrets.AIO_RUNTIME_NAMESPACE_STAGE }}
uses: adobe/aio-apps-action@3.0.0
uses: adobe/aio-apps-action@3.3.0
with:
os: ${{ matrix.os }}
command: build
- name: Test
uses: adobe/aio-apps-action@3.0.0
uses: adobe/aio-apps-action@3.3.0
with:
os: ${{ matrix.os }}
command: test
12 changes: 6 additions & 6 deletions test/generators/add-ci/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ describe('run', () => {

// added files
assert.file('.github/workflows/pr_test.yml')
assert.fileContent('.github/workflows/pr_test.yml', 'version: 9.x.x')
assert.fileContent('.github/workflows/pr_test.yml', 'adobe/aio-apps-action@3.0.0')
assert.fileContent('.github/workflows/pr_test.yml', 'version: 10.x.x')
assert.fileContent('.github/workflows/pr_test.yml', 'adobe/aio-apps-action@3.3.0')
assert.file('.github/workflows/deploy_prod.yml')
assert.fileContent('.github/workflows/deploy_prod.yml', 'version: 9.x.x')
assert.fileContent('.github/workflows/deploy_prod.yml', 'adobe/aio-apps-action@3.0.0')
assert.fileContent('.github/workflows/deploy_prod.yml', 'version: 10.x.x')
assert.fileContent('.github/workflows/deploy_prod.yml', 'adobe/aio-apps-action@3.3.0')
assert.file('.github/workflows/deploy_stage.yml')
assert.fileContent('.github/workflows/deploy_stage.yml', 'version: 9.x.x')
assert.fileContent('.github/workflows/deploy_stage.yml', 'adobe/aio-apps-action@3.0.0')
assert.fileContent('.github/workflows/deploy_stage.yml', 'version: 10.x.x')
assert.fileContent('.github/workflows/deploy_stage.yml', 'adobe/aio-apps-action@3.3.0')
})
})

0 comments on commit 64c3d46

Please sign in to comment.