Skip to content

Commit a55ab12

Browse files
author
Doug Hatcher
committedMay 24, 2024
devcontainer for running the solution
1 parent 9e6bdd1 commit a55ab12

File tree

3 files changed

+94
-0
lines changed

3 files changed

+94
-0
lines changed
 

‎.devcontainer/devcontainer.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Adobe Commerce Samples",
3+
4+
"image": "mcr.microsoft.com/devcontainers/base:jammy",
5+
"features": {
6+
"ghcr.io/devcontainers/features/node:1": {
7+
"nodeGypDependencies": true,
8+
"version": "18",
9+
"nvmVersion": "latest"
10+
}
11+
},
12+
13+
"postCreateCommand": "npm install -g @adobe/aio-cli && aio telemetry yes && aio plugins:install @adobe/aio-cli-plugin-api-mesh"
14+
15+
16+
}

‎.github/dependabot.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly
+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: AIO App CI
2+
3+
on: [pull_request, push]
4+
jobs:
5+
test:
6+
name: Test PR
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
node-version: ['20']
11+
os: [macOS-latest, ubuntu-latest, windows-latest]
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Prepare Context (Linux/macOS)
17+
if: runner.os != 'Windows'
18+
run: mv -f Webhooks/* .
19+
- name: Prepare Context (Windows)
20+
if: runner.os == 'Windows'
21+
run: |
22+
$source = "Webhooks\*"
23+
$destination = "."
24+
$files = Get-ChildItem -Path $source
25+
foreach ($file in $files) {
26+
$destPath = Join-Path -Path $destination -ChildPath $file.Name
27+
if (Test-Path -Path $destPath) {
28+
Remove-Item -Path $destPath -Recurse -Force
29+
}
30+
}
31+
Move-Item -Path $source -Destination $destination -Force
32+
33+
- name: Use Node.js ${{ matrix.node-version }}
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: ${{ matrix.node-version }}
37+
- name: npm install
38+
run: npm i
39+
- name: Setup CLI
40+
uses: adobe/aio-cli-setup-action@1.3.0
41+
with:
42+
os: ${{ matrix.os }}
43+
version: 10.x.x
44+
- name: Auth
45+
uses: adobe/aio-apps-action@3.3.0
46+
with:
47+
os: ${{ matrix.os }}
48+
command: oauth_sts
49+
CLIENTID: ${{ secrets.CLIENTID_STAGE }}
50+
CLIENTSECRET: ${{ secrets.CLIENTSECRET_STAGE }}
51+
TECHNICALACCOUNTID: ${{ secrets.TECHNICALACCID_STAGE }}
52+
TECHNICALACCOUNTEMAIL: ${{ secrets.TECHNICALACCEMAIL_STAGE }}
53+
IMSORGID: ${{ secrets.IMSORGID_STAGE }}
54+
SCOPES: ${{ secrets.SCOPES_STAGE }}
55+
- name: Build
56+
env:
57+
AIO_RUNTIME_NAMESPACE: ${{ secrets.AIO_RUNTIME_NAMESPACE_STAGE }}
58+
uses: adobe/aio-apps-action@3.3.0
59+
with:
60+
os: ${{ matrix.os }}
61+
command: build
62+
- name: Test
63+
uses: adobe/aio-apps-action@3.3.0
64+
with:
65+
os: ${{ matrix.os }}
66+
command: test

0 commit comments

Comments
 (0)
Please sign in to comment.