Skip to content

Update dependency eslint to v9.9.1 #1227

Update dependency eslint to v9.9.1

Update dependency eslint to v9.9.1 #1227

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@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
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@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
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 }}'