Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 39 additions & 39 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# # To get started with Dependabot version updates, you'll need to specify which
# # package ecosystems to update and where the package manifests are located.
# # Please see the documentation for all configuration options:
# # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

# NPM production dependencies are part of the generated Lambda JavaScript.
# Therefore updates on production are prefixed with fix(component) to trigger releases.
# Development updates are prefixed with chore, and not triggering a release.
# # NPM production dependencies are part of the generated Lambda JavaScript.
# # Therefore updates on production are prefixed with fix(component) to trigger releases.
# # Development updates are prefixed with chore, and not triggering a release.

version: 2
updates:
- package-ecosystem: "github-actions"
# Workflow files stored in the
# default location of `.github/workflows`
directory: "/"
schedule:
interval: "weekly"
# version: 2
# updates:
# - package-ecosystem: "github-actions"
# # Workflow files stored in the
# # default location of `.github/workflows`
# directory: "/"
# schedule:
# interval: "weekly"

- package-ecosystem: "npm"
directory: "/lambdas"
schedule:
interval: "weekly"
groups:
aws:
patterns:
- "@aws-sdk/*"
octokit:
patterns:
- "@octokit/*"
aws-powertools:
patterns:
- "@aws-lambda-powertools/*"
# - package-ecosystem: "npm"
# directory: "/lambdas"
# schedule:
# interval: "weekly"
# groups:
# aws:
# patterns:
# - "@aws-sdk/*"
# octokit:
# patterns:
# - "@octokit/*"
# aws-powertools:
# patterns:
# - "@aws-lambda-powertools/*"

ignore:
- dependency-name: "@middy/core"
update-types: ["version-update:semver-major"]
- dependency-name: "@octokit/*"
update-types: ["version-update:semver-major"]
- dependency-name: "eslint"
update-types: ["version-update:semver-major"]
commit-message:
prefix: "fix(lambda)"
prefix-development: "chore(lambda)"
# ignore:
# - dependency-name: "@middy/core"
# update-types: ["version-update:semver-major"]
# - dependency-name: "@octokit/*"
# update-types: ["version-update:semver-major"]
# - dependency-name: "eslint"
# update-types: ["version-update:semver-major"]
# commit-message:
# prefix: "fix(lambda)"
# prefix-development: "chore(lambda)"
72 changes: 36 additions & 36 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
name: "CodeQL Advanced"
# name: "CodeQL Advanced"

on:
push:
branches: [ "main", "develop", "v1" ]
pull_request:
branches: [ "main", "develop", "v1" ]
paths-ignore:
- '**/*.md'
schedule:
- cron: '25 19 * * 2'
# on:
# push:
# branches: [ "main", "develop", "v1" ]
# pull_request:
# branches: [ "main", "develop", "v1" ]
# paths-ignore:
# - '**/*.md'
# schedule:
# - cron: '25 19 * * 2'

jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write
# jobs:
# analyze:
# name: Analyze (${{ matrix.language }})
# runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
# permissions:
# # required for all workflows
# security-events: write

strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# strategy:
# fail-fast: false
# matrix:
# include:
# - language: javascript-typescript
# build-mode: none
# steps:
# - name: Checkout repository
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# # Initializes the CodeQL tools for scanning.
# - name: Initialize CodeQL
# uses: github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
# with:
# languages: ${{ matrix.language }}
# build-mode: ${{ matrix.build-mode }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
with:
category: "/language:${{matrix.language}}"
# - name: Perform CodeQL Analysis
# uses: github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
# with:
# category: "/language:${{matrix.language}}"
76 changes: 38 additions & 38 deletions .github/workflows/lambda.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
name: Build lambdas
on:
pull_request:
branches:
- main
paths:
- 'lambdas/**'
# name: Build lambdas
# on:
# pull_request:
# branches:
# - main
# paths:
# - 'lambdas/**'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [20]
container:
image: node:${{ matrix.node }}
defaults:
run:
working-directory: ./lambdas
# jobs:
# build:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# node: [20]
# container:
# image: node:${{ matrix.node }}
# defaults:
# run:
# working-directory: ./lambdas

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run prettier
run: yarn format-check
- name: Run linter
run: yarn lint
- name: Run tests
id: test
run: yarn test
- name: Build distribution
run: yarn build
- name: Upload coverage report
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
if: ${{ failure() }}
with:
name: coverage-reports
path: ./**/coverage
retention-days: 5
# steps:
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# - name: Install dependencies
# run: yarn install --frozen-lockfile
# - name: Run prettier
# run: yarn format-check
# - name: Run linter
# run: yarn lint
# - name: Run tests
# id: test
# run: yarn test
# - name: Build distribution
# run: yarn build
# - name: Upload coverage report
# uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
# if: ${{ failure() }}
# with:
# name: coverage-reports
# path: ./**/coverage
# retention-days: 5
68 changes: 34 additions & 34 deletions .github/workflows/packer-build.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
name: "Packer checks"
on:
push:
branches:
- main
pull_request:
paths:
- "images/**"
- ".github/workflows/packer-build.yml"
- "module/runners/templates/**"
env:
AWS_REGION: eu-west-1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
verify_packer:
name: Verify packer
runs-on: ubuntu-latest
container:
image: index.docker.io/hashicorp/packer@sha256:12c441b8a3994e7df9f0e2692d9298f14c387e70bcc06139420977dbf80a137b # 1.11.2
strategy:
matrix:
image: ["linux-al2023", "windows-core-2019", "windows-core-2022", "ubuntu-focal", "ubuntu-jammy", "ubuntu-jammy-arm64"]
defaults:
run:
working-directory: images/${{ matrix.image }}
steps:
- name: "Checkout"
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: packer init
run: packer init .
- name: check packer formatting
run: packer fmt -recursive -check=true .
- name: packer validate
run: packer validate -evaluate-datasources .
# name: "Packer checks"
# on:
# push:
# branches:
# - main
# pull_request:
# paths:
# - "images/**"
# - ".github/workflows/packer-build.yml"
# - "module/runners/templates/**"
# env:
# AWS_REGION: eu-west-1
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# jobs:
# verify_packer:
# name: Verify packer
# runs-on: ubuntu-latest
# container:
# image: index.docker.io/hashicorp/packer@sha256:12c441b8a3994e7df9f0e2692d9298f14c387e70bcc06139420977dbf80a137b # 1.11.2
# strategy:
# matrix:
# image: ["linux-al2023", "windows-core-2019", "windows-core-2022", "ubuntu-focal", "ubuntu-jammy", "ubuntu-jammy-arm64"]
# defaults:
# run:
# working-directory: images/${{ matrix.image }}
# steps:
# - name: "Checkout"
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# - name: packer init
# run: packer init .
# - name: check packer formatting
# run: packer fmt -recursive -check=true .
# - name: packer validate
# run: packer validate -evaluate-datasources .
Loading
Loading