Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Mar 8, 2024
1 parent 2fe0003 commit 1e4fe22
Show file tree
Hide file tree
Showing 5 changed files with 330 additions and 40 deletions.
74 changes: 34 additions & 40 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,38 @@
# 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://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
enable-beta-ecosystems: true

updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"
versioning-strategy: lockfile-only

- package-ecosystem: "npm"
directory: "/example/functions"
schedule:
interval: "daily"
versioning-strategy: increase

- package-ecosystem: "npm"
directory: "/example/infrastructure"
schedule:
interval: "daily"
versioning-strategy: increase

# Maintain dependencies for JS
- package-ecosystem: "npm"
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
groups:
"@types":
patterns:
- "@types*"
update-types:
- "minor"
- "patch"
"@aws-sdk":
patterns:
- "@aws-sdk*"
update-types:
- "minor"
- "patch"
aws-cdk:
patterns:
- "aws-cdk"
- "aws-cdk-lib"
update-types:
- "minor"
- "patch"
- package-ecosystem: "npm"
directory: "/example/llrt-sam/hello-world"
schedule:
interval: "daily"
versioning-strategy: increase

# Maintain dependencies for rust
- package-ecosystem: "cargo"
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
versioning-strategy: increase
45 changes: 45 additions & 0 deletions .github/workflows/Dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Dependabot

concurrency:
group: Dependabot-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
security-events: write
contents: write
pull-requests: write

on:
workflow_dispatch:
pull_request:

jobs:
Approve:
runs-on: ubuntu-latest

if: ${{ github.actor == 'dependabot[bot]' }}

steps:
- uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

Merge:
runs-on: ubuntu-latest

if: ${{ github.actor == 'dependabot[bot]' }}

steps:
- uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
56 changes: 56 additions & 0 deletions .github/workflows/GitHub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: GitHub

concurrency:
group: GitHub-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
issues: write
pull-requests: write

on:
issues:
types: [opened]
pull_request:
types: [opened]

jobs:
Assign:
runs-on: ubuntu-latest

env:
ADBLOCK: true
TELEMETRY_DISABLED: 1
ASTRO_TELEMETRY_DISABLED: 1
AUTOMATEDLAB_TELEMETRY_OPTOUT: 1
AZURE_CORE_COLLECT_TELEMETRY: 0
CHOOSENIM_NO_ANALYTICS: 1
DIEZ_DO_NOT_TRACK: 1
DO_NOT_TRACK: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1
ET_NO_TELEMETRY: 1
GATSBY_TELEMETRY_DISABLED: 1
GATSBY_TELEMETRY_OPT_OUT: 1
GATSBY_TELEMETRY_OPTOUT: 1
HASURA_GRAPHQL_ENABLE_TELEMETRY: false
HINT_TELEMETRY: off
HOMEBREW_NO_ANALYTICS: 1
INFLUXD_REPORTING_DISABLED: true
ITERATIVE_DO_NOT_TRACK: 1
NEXT_TELEMETRY_DEBUG: 1
NEXT_TELEMETRY_DISABLED: 1
NG_CLI_ANALYTICS: false
NUXT_TELEMETRY_DISABLED: 1
PIN_DO_NOT_TRACK: 1
POWERSHELL_TELEMETRY_OPTOUT: 1
SAM_CLI_TELEMETRY: 0
STNOUPGRADE: 1
STRIPE_CLI_TELEMETRY_OPTOUT: 1

steps:
- uses: pozil/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
assignees: NikolaRHristov
numOfAssignee: 1
118 changes: 118 additions & 0 deletions .github/workflows/Node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: Node

concurrency:
group: Node-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
security-events: write
contents: write
pull-requests: write

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:

jobs:
Pre-Publish:
runs-on: ubuntu-latest

env:
ADBLOCK: true
TELEMETRY_DISABLED: 1
ASTRO_TELEMETRY_DISABLED: 1
AUTOMATEDLAB_TELEMETRY_OPTOUT: 1
AZURE_CORE_COLLECT_TELEMETRY: 0
CHOOSENIM_NO_ANALYTICS: 1
DIEZ_DO_NOT_TRACK: 1
DO_NOT_TRACK: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1
ET_NO_TELEMETRY: 1
GATSBY_TELEMETRY_DISABLED: 1
GATSBY_TELEMETRY_OPT_OUT: 1
GATSBY_TELEMETRY_OPTOUT: 1
HASURA_GRAPHQL_ENABLE_TELEMETRY: false
HINT_TELEMETRY: off
HOMEBREW_NO_ANALYTICS: 1
INFLUXD_REPORTING_DISABLED: true
ITERATIVE_DO_NOT_TRACK: 1
NEXT_TELEMETRY_DEBUG: 1
NEXT_TELEMETRY_DISABLED: 1
NG_CLI_ANALYTICS: false
NUXT_TELEMETRY_DISABLED: 1
PIN_DO_NOT_TRACK: 1
POWERSHELL_TELEMETRY_OPTOUT: 1
SAM_CLI_TELEMETRY: 0
STNOUPGRADE: 1
STRIPE_CLI_TELEMETRY_OPTOUT: 1

strategy:
matrix:
node-version: [18, 19, 20]

steps:
- uses: actions/[email protected]

- uses: pnpm/[email protected]
with:
version: 8.6.12
run_install: |
- recursive: true
args: [
--link-workspace-packages=true,
--lockfile-only,
--prefer-frozen-lockfile=false,
--shamefully-hoist=false,
--shared-workspace-lockfile=true,
--strict-peer-dependencies=false,
--unsafe-perm=true
]
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./example/functions/pnpm-lock.yaml

- run: pnpm install
working-directory: ./example/functions

- run: pnpm run build
working-directory: .

- uses: actions/[email protected]
with:
name: .-example-functions-Node-${{ matrix.node-version }}-Target
path: ./example/functions/Target

- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./example/infrastructure/pnpm-lock.yaml

- run: pnpm install
working-directory: ./example/infrastructure

- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./example/llrt-sam/hello-world/pnpm-lock.yaml

- run: pnpm install
working-directory: ./example/llrt-sam/hello-world

- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./pnpm-lock.yaml

- run: pnpm install
working-directory: .
77 changes: 77 additions & 0 deletions .github/workflows/Rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Rust

concurrency:
group: Rust-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
security-events: write

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:

jobs:
Build:
runs-on: ubuntu-latest

env:
ADBLOCK: true
TELEMETRY_DISABLED: 1
ASTRO_TELEMETRY_DISABLED: 1
AUTOMATEDLAB_TELEMETRY_OPTOUT: 1
AZURE_CORE_COLLECT_TELEMETRY: 0
CHOOSENIM_NO_ANALYTICS: 1
DIEZ_DO_NOT_TRACK: 1
DO_NOT_TRACK: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1
ET_NO_TELEMETRY: 1
GATSBY_TELEMETRY_DISABLED: 1
GATSBY_TELEMETRY_OPT_OUT: 1
GATSBY_TELEMETRY_OPTOUT: 1
HASURA_GRAPHQL_ENABLE_TELEMETRY: false
HINT_TELEMETRY: off
HOMEBREW_NO_ANALYTICS: 1
INFLUXD_REPORTING_DISABLED: true
ITERATIVE_DO_NOT_TRACK: 1
NEXT_TELEMETRY_DEBUG: 1
NEXT_TELEMETRY_DISABLED: 1
NG_CLI_ANALYTICS: false
NUXT_TELEMETRY_DISABLED: 1
PIN_DO_NOT_TRACK: 1
POWERSHELL_TELEMETRY_OPTOUT: 1
SAM_CLI_TELEMETRY: 0
STNOUPGRADE: 1
STRIPE_CLI_TELEMETRY_OPTOUT: 1

strategy:
matrix:
toolchain: ["stable", "nightly"]

steps:
- uses: actions/[email protected]

- uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}

- uses: actions/[email protected]
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
Target/
key: ${{ runner.os }}-cargo-${{ hashFiles('./Cargo.toml') }}
- uses: actions-rs/[email protected]
with:
command: build
args: --release --all-features --manifest-path ./Cargo.toml

0 comments on commit 1e4fe22

Please sign in to comment.