Skip to content

Update dependency @types/node to v20.16.6 #1296

Update dependency @types/node to v20.16.6

Update dependency @types/node to v20.16.6 #1296

name: environment-matrix
on:
pull_request:
paths:
- environment-matrix/**
- '*.json'
- '*.yaml'
- .github/workflows/environment-matrix.yaml
push:
branches:
- main
paths:
- environment-matrix/**
- '*.json'
- '*.yaml'
- .github/workflows/environment-matrix.yaml
defaults:
run:
working-directory: environment-matrix
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 20
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm test
e2e-test:
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
environments: ${{ steps.environment-matrix.outputs.json }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 20
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm build
- uses: ./environment-matrix
id: environment-matrix
with:
service: example
rules: |
- pull_request:
base: '**'
head: '**'
environments:
- overlay: pr
namespace: pr-${{ github.event.pull_request.number }}
- push:
ref: refs/heads/main
environments:
- overlay: development
namespace: development
e2e-test-matrix:
needs: e2e-test
runs-on: ubuntu-latest
timeout-minutes: 3
defaults:
run:
working-directory: . # run without actions/checkout
strategy:
fail-fast: true
matrix:
environment: ${{ fromJSON(needs.e2e-test.outputs.environments) }}
steps:
- run: echo 'overlay=${{ matrix.environment.overlay }}'
- run: echo 'namespace=${{ matrix.environment.namespace }}'
- run: echo 'github-deployment-url=${{ matrix.environment.github-deployment-url }}'